Skip to content

Commit 291da9d

Browse files
KAGA-KOKOIngo Molnar
authored andcommitted
locking/mutex: Fix non debug version of mutex_lock_io_nested()
If CONFIG_DEBUG_LOCK_ALLOC=n then mutex_lock_io_nested() maps to mutex_lock() which is clearly wrong because mutex_lock() lacks the io_schedule_prepare()/finish() invocations. Map it to mutex_lock_io(). Fixes: f21860b ("locking/mutex, sched/wait: Fix the mutex_lock_io_nested() define") Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
1 parent 38c9358 commit 291da9d

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)