]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
scsi: hpsa: Prevent sending bmic commands to externals
authorScott Teel <scott.teel@microsemi.com>
Fri, 9 Sep 2016 21:30:36 +0000 (16:30 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 14 Sep 2016 18:21:00 +0000 (14:21 -0400)
Reviewed-by: Scott Benesh <scott.benest@microsemi.com>
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hpsa.c

index 5d25e8db281caae220f773b71635e0bc1fa81834..82b277be6bf1a6fa50339fabb3386c55e735d414 100644 (file)
@@ -4072,7 +4072,17 @@ static void hpsa_get_ioaccel_drive_info(struct ctlr_info *h,
                struct bmic_identify_physical_device *id_phys)
 {
        int rc;
-       struct ext_report_lun_entry *rle = &rlep->LUN[rle_index];
+       struct ext_report_lun_entry *rle;
+
+       /*
+        * external targets don't support BMIC
+        */
+       if (dev->external) {
+               dev->queue_depth = 7;
+               return;
+       }
+
+       rle = &rlep->LUN[rle_index];
 
        dev->ioaccel_handle = rle->ioaccel_handle;
        if ((rle->device_flags & 0x08) && dev->ioaccel_handle)