lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20231108124123.51c4a7339b7b.Id71e81d75d102fff30d5cd33e39d27caefbf83b7@changeid>
Date:   Wed,  8 Nov 2023 12:41:24 +0100
From:   Johannes Berg <johannes@...solutions.net>
To:     linux-doc@...r.kernel.org
Cc:     linux-kernel@...r.kernel.org,
        Peter Zijlstra <peterz@...radead.org>,
        Ingo Molnar <mingo@...hat.com>, Will Deacon <will@...nel.org>,
        Johannes Berg <johannes.berg@...el.com>,
        Davidlohr Bueso <dave@...olabs.net>
Subject: [PATCH] Documentation: locking: mutex-design: fix atomic_dec_and_mutex_lock()

From: Johannes Berg <johannes.berg@...el.com>

Since atomic_dec_and_mutex_lock() uses mutex_lock() it is indeed not
interruptible. Fix the documentation.

Cc: Davidlohr Bueso <dave@...olabs.net>
Fixes: 9161f5409798 ("locking/mutexes: Documentation update/rewrite")
Signed-off-by: Johannes Berg <johannes.berg@...el.com>
---
 Documentation/locking/mutex-design.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/locking/mutex-design.rst b/Documentation/locking/mutex-design.rst
index 78540cd7f54b..9d75661a60fc 100644
--- a/Documentation/locking/mutex-design.rst
+++ b/Documentation/locking/mutex-design.rst
@@ -124,7 +124,7 @@ Acquire the mutex, interruptible::
 				       unsigned int subclass);
    int mutex_lock_interruptible(struct mutex *lock);
 
-Acquire the mutex, interruptible, if dec to 0::
+Acquire the mutex, uninterruptible, if dec to 0::
 
    int atomic_dec_and_mutex_lock(atomic_t *cnt, struct mutex *lock);
 
-- 
2.41.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ