]> git.baikalelectronics.ru Git - kernel.git/commit
locking/mutex: Fix non debug version of mutex_lock_io_nested()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 22 Mar 2021 08:46:13 +0000 (09:46 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 23 Mar 2021 11:20:23 +0000 (12:20 +0100)
commit81c5979d128bcd652d8d6bb82009eaa6a5b482bb
treedc36a4a00e9b7159b779e5b73934beaac0159bb4
parent5a516e87d2c8d05c73fb43421e692d5e3aae86bf
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: 36053920a165 ("locking/mutex, sched/wait: Fix the mutex_lock_io_nested() define")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/878s6fshii.fsf@nanos.tec.linutronix.de
include/linux/mutex.h