IB/srp: Clean up loop in srp_remove_one()
authorIshai Rabinovitz <ishai@mellanox.co.il>
Sun, 18 Jun 2006 03:37:31 +0000 (20:37 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 18 Jun 2006 03:37:31 +0000 (20:37 -0700)
commit0c5b395239cdea4db3d9c23a5738fdaf3b9ada4c
tree92262c3a2480603bee7e8b8b405a3a4060433315
parent403a496fd4af3036c12e1f9c90a89cf846fadd35
IB/srp: Clean up loop in srp_remove_one()

Interrupts will always be enabled in srp_remove_one(), so
spin_lock_irq() can be used instead of spin_lock_irqsave().
Also, the loop takes target->scsi_host->host_lock, so target->state
can just be set to SRP_TARGET_REMOVED witout testing the old value.

Signed-off-by: Ishai Rabinovitz <ishai@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/srp/ib_srp.c