Re: [PATCH RT] locking/rtmutex: do lockdep before actual locking in rt_spin_lock()

From: Peter Zijlstra
Date: Wed Oct 11 2017 - 12:20:22 EST


On Wed, Oct 11, 2017 at 06:16:46PM +0200, Sebastian Andrzej Siewior wrote:
> rt_spin_lock() should first do the lock annotation via lockdep and then
> do the actual locking. That way we learn about the deadlock from lockdep
> before it happens.

Yep, that's the right order.