From: Ishai Rabinovitz Date: Sun, 18 Jun 2006 03:37:31 +0000 (-0700) Subject: IB/srp: Clean up loop in srp_remove_one() X-Git-Tag: v2.6.18-rc1~1110^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c5b395239cdea4db3d9c23a5738fdaf3b9ada4c;p=pandora-kernel.git 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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed