]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 8 Apr 2021 20:42:41 +0000 (15:42 -0500)
commitf4212931f4d89530467e2e9fa25f6edd4c054a32
tree780af9155ad40a404d1ff172f3b66f30bdbae2f0
parentb2f0d7c7602d7bd2521e81b7ce86d86bcaee5530
locking/mutex: Fix non debug version of mutex_lock_io_nested()

BugLink: https://bugs.launchpad.net/bugs/1922601
commit 291da9d4a9eb3a1cb0610b7f4480f5b52b1825e7 upstream.

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: f21860bac05b ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
include/linux/mutex.h