scsi: aacraid: Fix I/O drop during reset
authorPrasad B Munirathnam <prasad.munirathnam@microsemi.com>
Tue, 12 Dec 2017 19:40:10 +0000 (11:40 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Dec 2017 03:34:28 +0000 (22:34 -0500)
commit5771cfffdffe709ae9b403b6f80438ca40bf850e
tree94935e84da49ddadc657ebf367fc4bc71a958137
parent093b8886f446c9351c4de512cb1d4afe30e37f6f
scsi: aacraid: Fix I/O drop during reset

"FIB_CONTEXT_FLAG_TIMEDOUT" flag is set in aac_eh_abort to indicate
command timeout. Using the same flag in reset handler causes the command
to time out and the I/Os were dropped.

Define a new flag "FIB_CONTEXT_FLAG_EH_RESET" to make sure I/O is
properly handled in eh_reset handler.

[mkp: tweaked commit message]

Signed-off-by: Prasad B Munirathnam <prasad.munirathnam@microsemi.com>
Reviewed-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/aacraid.h
drivers/scsi/aacraid/linit.c