diff options
author | Saurav Kashyap <skashyap@marvell.com> | 2019-03-26 08:38:38 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-03-28 02:54:52 +0100 |
commit | 69ef2c692510d5154c613569caeeed3c74806231 (patch) | |
tree | 5a9e9b0ee3ecfe4d1c0eacaa4067e76769ac422b /drivers/scsi/scsi_transport_spi.c | |
parent | scsi: qedf: Modify flush routine to handle all I/Os and TMF (diff) | |
download | linux-69ef2c692510d5154c613569caeeed3c74806231.tar.xz linux-69ef2c692510d5154c613569caeeed3c74806231.zip |
scsi: qedf: Modify abort and tmf handler to handle edge condition and flush
An I/O can be in any state when flush is called, it can be in abort,
waiting for abort, RRQ send and waiting or TMF send.
- HZ can be different on different architecture, correctly set abort
timeout value.
- Flush can complete the I/Os prematurely, handle refcount for aborted
I/Os and for which RRQ is pending.
- Differentiate LUN/TARGET reset, as cleanup needs to be send to firmware
accordingly.
- Add flush mutex to sync cleanup call from abort and flush routine.
- Clear abort/outstanding bit on timeout.
Signed-off-by: Shyam Sundar <shyam.sundar@marvell.com>
Signed-off-by: Chad Dupuis <cdupuis@marvell.com>
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_transport_spi.c')
0 files changed, 0 insertions, 0 deletions