From: Bart Van Assche Date: Wed, 9 Jul 2014 13:56:43 +0000 (+0200) Subject: scsi_transport_srp: Fix fast_io_fail_tmo=dev_loss_tmo=off behavior X-Git-Tag: omap-for-v3.17/fixes-against-rc2~62^2^11~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd53eb686d2418eda938aad3c9da42b7dfa9351f;p=pandora-kernel.git scsi_transport_srp: Fix fast_io_fail_tmo=dev_loss_tmo=off behavior If scsi_remove_host() is called while an rport is in the blocked state then scsi_remove_host() will only finish if the rport is unblocked from inside a timer function. Make sure that an rport only enters the blocked state if a timer will be started that will unblock it. This avoids that unloading the ib_srp kernel module after having disconnected the initiator from the target system results in a deadlock if both the fast_io_fail_tmo and dev_loss_tmo parameters have been set to "off". Signed-off-by: Bart Van Assche Reviewed-by: Sagi Grimberg Reviewed-by: David Dillow Cc: Signed-off-by: Roland Dreier --- Reading git-diff-tree failed