IB/usnic: Change WARN_ON to lockdep_assert_held
authorUpinder Malhi <umalhi@cisco.com>
Thu, 9 Jan 2014 22:47:33 +0000 (14:47 -0800)
committerRoland Dreier <roland@purestorage.com>
Tue, 14 Jan 2014 08:44:40 +0000 (00:44 -0800)
commit8192d4acb5c5376c0f6756f2106ab243036c8c7d
treea6f89a696ac9b028054fd97bf4d59da69c9164db
parente3cf00d0a87f025db5855a43a67c67a41fa79fef
IB/usnic: Change WARN_ON to lockdep_assert_held

usNIC calls WARN_ON(spin_is_locked..) at few places.  In some of these
instances, the call is made while holding a spinlock.  Change
all WARN_ON(spin_is_locked...) calls in usNIC to
lockdep_assert_held to make it fool-proof bc the latter can be
called while holding a spinlock and unlike spin_is_locked,
lockdep_assert_held also works correctly on UP.

Signed-off-by: Upinder Malhi <umalhi@cisco.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c
This page took 0.139154 seconds and 5 git commands to generate.