summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorMichael Chan2009-08-14 17:49:46 +0200
committerDavid S. Miller2009-08-16 03:50:44 +0200
commit681dbd710779e8b8d5bae926f6b11f30df70638b (patch)
tree50605514ea7316f8a6316a93e205c0c9a3fb4399 /drivers/scsi
parentbnx2: Use mutex on slow path cnic calls. (diff)
downloadkernel-qcow2-linux-681dbd710779e8b8d5bae926f6b11f30df70638b.tar.gz
kernel-qcow2-linux-681dbd710779e8b8d5bae926f6b11f30df70638b.tar.xz
kernel-qcow2-linux-681dbd710779e8b8d5bae926f6b11f30df70638b.zip
cnic: Fix locking in start/stop calls.
The slow path ulp_start and ulp_stop calls to the bnx2i driver are sleepable calls and therefore should not be protected using rcu_read_lock. Fix it by using mutex and setting a bit during these calls. cnic_unregister_device() will now wait for the bit to clear before completing the call. Signed-off-by: Michael Chan <mchan@broadcom.com> Reviewed-by: Benjamin Li <benli@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi')
0 files changed, 0 insertions, 0 deletions