Subject: Re: [PATCH] CAPI: Silence lockdep warning on get_capi_appl_by_nr usage

From: Peter Zijlstra <[email-masked]>
Date: Sun, 17 Oct 2010 12:25:35 +0200

On Sat, 2010-10-16 at 13:14 +0200, Jan Kiszka wrote:
> +       WARN_ON_ONCE(!mutex_is_locked(&capi_controller_lock));

Note there is also lockdep_assert_held() which will actually validate
that the current task is the owner.