linux/drivers/infiniband/ulp/srp
Bart Van Assche 34aa654ecb IB/srp: Avoid that I/O hangs due to a cable pull during LUN scanning
If a cable is pulled during LUN scanning it can happen that the
SRP rport and the SCSI host have been created but no LUNs have been
added to the SCSI host. Since multipathd only sends SCSI commands
to a SCSI target if one or more SCSI devices are present and since
there is no keepalive mechanism for IB queue pairs this means that
after a LUN scan failed and after a reconnect has succeeded no
data will be sent over the QP and hence that a subsequent cable
pull will not be detected. Avoid this by not creating an rport or
SCSI host if a cable is pulled during a SCSI LUN scan.

Note: so far the above behavior has only been observed with the
kernel module parameter ch_count set to a value >= 2.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2014-11-12 11:32:02 +01:00
..
ib_srp.c IB/srp: Avoid that I/O hangs due to a cable pull during LUN scanning 2014-11-12 11:32:02 +01:00
ib_srp.h IB/srp: Avoid that I/O hangs due to a cable pull during LUN scanning 2014-11-12 11:32:02 +01:00
Kbuild
Kconfig [SCSI] ib_srp: convert to use the srp transport class 2007-10-12 14:37:42 -04:00