]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
scsi: aacraid: fixed IO reporting error
authorBalsundar P <balsundar.p@microsemi.com>
Tue, 15 Oct 2019 06:21:59 +0000 (11:51 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 18 Oct 2019 23:34:17 +0000 (19:34 -0400)
The problem is the driver detects FastResponse bit set and saves it to
Fib's flags to not check IO response status, but it never clears it for
next IO. Hence the next IO will pick up FastResponse bit to not check
the IO response status and fail to report any type IO error to kernel

Link: https://lore.kernel.org/r/1571120524-6037-3-git-send-email-balsundar.p@microsemi.com
Signed-off-by: Balsundar P <balsundar.p@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/commsup.c

index 2142a649e865b7373be6148201e248ba792088b0..3f268f669cc38246935b9f4cac3a8926f4ff67a4 100644 (file)
@@ -232,6 +232,7 @@ struct fib *aac_fib_alloc_tag(struct aac_dev *dev, struct scsi_cmnd *scmd)
        fibptr->type = FSAFS_NTC_FIB_CONTEXT;
        fibptr->callback_data = NULL;
        fibptr->callback = NULL;
+       fibptr->flags = 0;
 
        return fibptr;
 }