From: Michael Reed Date: Fri, 9 Oct 2009 19:15:59 +0000 (-0500) Subject: [SCSI] scsi_transport_fc: remove invalid BUG_ON X-Git-Tag: v2.6.33-rc1~344^2~181 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8798a694da59486e4a3ff0abeec183202fb34c20;p=pandora-kernel.git [SCSI] scsi_transport_fc: remove invalid BUG_ON I was doing some large lun count testing with 2.6.31 and hit a BUG_ON() in fc_timeout_deleted_rport(), and it seems like it should have been just a matter of time before someone did. It seems invalid to set port_state under lock, then expect it to remain set after releasing the lock. Another thread called fc_remote_port_add() when the lock was released, changing the port_state. This patch removes the BUG_ON and moves the test of the port_state to inside the host_lock. It's been running for several weeks now with no ill effect. Signed-off-by: Michael Reed Acked-by: James Smart Signed-off-by: James Bottomley --- Reading git-diff-tree failed