lkml.org 
[lkml]   [2023]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Documentation: locking: mutex-design: fix atomic_dec_and_mutex_lock()
Date
From: Johannes Berg <johannes.berg@intel.com>

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

Cc: Davidlohr Bueso <dave@stgolabs.net>
Fixes: 9161f5409798 ("locking/mutexes: Documentation update/rewrite")
Signed-off-by: Johannes Berg <johannes.berg@intel.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
\
 
 \ /
  Last update: 2023-11-20 13:53    [W:0.031 / U:0.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site