scsi: qedf: Add additional checks when restarting an rport due to ABTS timeout
authorChad Dupuis <chad.dupuis@cavium.com>
Wed, 25 Apr 2018 13:09:01 +0000 (06:09 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 May 2018 04:57:11 +0000 (00:57 -0400)
commit92bbccdf72ae7f605dbbae050e92dda8971c592d
tree277c29a769477e4420ef7c7ad346756382732a62
parent96673e1e224c8ecb44effc5aaf32455456b7c3e9
scsi: qedf: Add additional checks when restarting an rport due to ABTS timeout

There are a couple of kernel cases when we restart a remote port due to
ABTS timeout that we need to handle:

 1. Flush any outstanding ABTS requests when flushing I/Os so that we do
    not hold up the eh_abort handler indefinitely causing process hangs.

 2. Check if we are currently uploading a connection before issuing an
    ABTS.

Signed-off-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_io.c