Re: [PATCH -tip] locking/mutex: Complain upon api misuse wrt interrupt context

From: Davidlohr Bueso
Date: Fri Oct 25 2019 - 13:29:14 EST


On Fri, 25 Oct 2019, Peter Zijlstra wrote:
No real objection, but should not lockdep already complain about this?
__mutex_unlock_slowpath() takes ->wait_lock irq-unsafe, so then using it
from an IRQ should generate an insta IRQ inversion report.

But we still have the unlock fastpath and the trylock scenarios which
don't take locks.

Thanks,
davidlohr