diff options
author | Bart Van Assche <bvanassche@acm.org> | 2014-07-09 15:56:43 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-08-01 15:21:51 -0700 |
commit | cd53eb686d2418eda938aad3c9da42b7dfa9351f (patch) | |
tree | 8b6ae868a168996350431b6d1e8cd648f7739ddd /drivers/virtio | |
parent | 64aa90f26c06e1cb2aacfb98a7d0eccfbd6c1a91 (diff) | |
download | op-kernel-dev-cd53eb686d2418eda938aad3c9da42b7dfa9351f.zip op-kernel-dev-cd53eb686d2418eda938aad3c9da42b7dfa9351f.tar.gz |
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 <bvanassche@acm.org>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: David Dillow <dave@thedillows.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/virtio')
0 files changed, 0 insertions, 0 deletions