Re: [PATCH 1/2] security/apparmor: Replace homebrew use of write_can_lock with lockdep

From: Peter Zijlstra
Date: Tue Oct 03 2017 - 11:07:24 EST

On Tue, Oct 03, 2017 at 03:32:45PM +0100, Will Deacon wrote:
> The lockdep subsystem provides a robust way to assert that a lock is
> held, so use that instead of write_can_lock, which can give incorrect
> results for qrwlocks.
> Cc: John Johansen <john.johansen@xxxxxxxxxxxxx>
> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> Signed-off-by: Will Deacon <will.deacon@xxxxxxx>

Thanks Will, good to be able to finally remove that API.