]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit80b991de14eb625e470741dba46e45aad5c01bf2
tree277c29a769477e4420ef7c7ad346756382732a62
parent5d4fb3386f7a463fb9fbba8fe6773b9e9b9b701a
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