Re: [PATCH] CAPI: Silence lockdep warning on get_capi_appl_by_nr usage
Peter Zijlstra <[email protected]>
| Newsgroups | gmane.linux.kernel,gmane.linux.isdn.i4l.devel,gmane.linux.network |
|---|---|
| Message-ID | <1287311135.1998.154.camel@laptop> |
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.