Re: [PATCH] CAPI: Silence lockdep warning on get_capi_appl_by_nrusage

From: Peter Zijlstra
Date: Sun Oct 17 2010 - 06:25:56 EST


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.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/