Re: locking/mutex: Fix non debug version of mutex_lock_io_nested()

From: Peter Zijlstra
Date: Mon Mar 22 2021 - 05:02:13 EST


On Mon, Mar 22, 2021 at 09:46:13AM +0100, Thomas Gleixner wrote:
> 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().

Thanks!