Skip to content

Commit 5771cff

Browse files
Prasad B Munirathnammartinkpetersen
authored andcommitted
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>
1 parent 093b888 commit 5771cff

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/scsi/aacraid/aacraid.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,6 +1725,7 @@ struct aac_dev
17251725
#define FIB_CONTEXT_FLAG_NATIVE_HBA (0x00000010)
17261726
#define FIB_CONTEXT_FLAG_NATIVE_HBA_TMF (0x00000020)
17271727
#define FIB_CONTEXT_FLAG_SCSI_CMD (0x00000040)
1728+
#define FIB_CONTEXT_FLAG_EH_RESET (0x00000080)
17281729

17291730
/*
17301731
* Define the command values

drivers/scsi/aacraid/linit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ static int aac_eh_bus_reset(struct scsi_cmnd* cmd)
10371037
info = &aac->hba_map[bus][cid];
10381038
if (bus >= AAC_MAX_BUSES || cid >= AAC_MAX_TARGETS ||
10391039
info->devtype != AAC_DEVTYPE_NATIVE_RAW) {
1040-
fib->flags |= FIB_CONTEXT_FLAG_TIMED_OUT;
1040+
fib->flags |= FIB_CONTEXT_FLAG_EH_RESET;
10411041
cmd->SCp.phase = AAC_OWNER_ERROR_HANDLER;
10421042
}
10431043
}

0 commit comments

Comments
 (0)