scsi: aacraid: Do not attempt abort when Fw panicked
authorRaghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Wed, 27 Dec 2017 04:34:23 +0000 (20:34 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Jan 2018 04:26:41 +0000 (23:26 -0500)
Check if the adapter can receive abort requests, before sending aborts

Signed-off-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/linit.c

index 3677beff9c17294159fa6cf77da3422eac212083..5eb07223087bdea970234beaabe44cf430c635ff 100644 (file)
@@ -683,6 +683,9 @@ static int aac_eh_abort(struct scsi_cmnd* cmd)
        u32 bus, cid;
        int ret = FAILED;
 
+       if (aac_adapter_check_health(aac))
+               return ret;
+
        bus = aac_logical_to_phys(scmd_channel(cmd));
        cid = scmd_id(cmd);
        if (aac->hba_map[bus][cid].devtype == AAC_DEVTYPE_NATIVE_RAW) {