Skip to content

Commit 47fbbc9

Browse files
committed
Merge tag 'locking-urgent-2021-03-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull locking fix from Ingo Molnar: "Fix the non-debug mutex_lock_io_nested() method to map to mutex_lock_io() instead of mutex_lock(). Right now nothing uses this API explicitly, but this is an accident waiting to happen" * tag 'locking-urgent-2021-03-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: locking/mutex: Fix non debug version of mutex_lock_io_nested()
2 parents 81b1d39 + 291da9d commit 47fbbc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/mutex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ extern void mutex_lock_io(struct mutex *lock);
185185
# define mutex_lock_interruptible_nested(lock, subclass) mutex_lock_interruptible(lock)
186186
# define mutex_lock_killable_nested(lock, subclass) mutex_lock_killable(lock)
187187
# define mutex_lock_nest_lock(lock, nest_lock) mutex_lock(lock)
188-
# define mutex_lock_io_nested(lock, subclass) mutex_lock(lock)
188+
# define mutex_lock_io_nested(lock, subclass) mutex_lock_io(lock)
189189
#endif
190190

191191
/*

0 commit comments

Comments
 (0)