]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
hpsa: Get queue depth from identify physical bmic for physical disks.
authorJoe Handzik <joseph.t.handzik@hp.com>
Fri, 6 Nov 2015 13:47:41 +0000 (05:47 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 19:46:53 +0000 (11:46 -0800)
get drive queue depth to help avoid task set full conditions.

Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Reviewed-by: Kevin Barnett <kevin.barnett@pmcs.com>
Signed-off-by: Joe Handzik <joseph.t.handzik@hp.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Orabug: 22075051
Acked-by: Chuck Anderson <chuck.anderson@oracle.com>
drivers/scsi/hpsa.c

index 15f8bb6827cf1f0ab8a323d7ea815c518e91d10d..236dfc98840b0148bcba2bbd8bd4763bae0666ba 100644 (file)
@@ -3464,29 +3464,22 @@ static void hpsa_update_scsi_devices(struct ctlr_info *h, int hostno)
                                ncurrent++;
                        break;
                case TYPE_DISK:
-                       if (h->hba_mode_enabled) {
-                               /* never use raid mapper in HBA mode */
-                               this_device->offload_enabled = 0;
-                               ncurrent++;
-                               break;
-                       } else if (h->acciopath_status) {
-                               if (i >= nphysicals) {
-                                       ncurrent++;
-                                       break;
-                               }
-                       } else {
-                               if (i < nphysicals)
-                                       break;
+                       if (i >= nphysicals) {
                                ncurrent++;
                                break;
                        }
-                       if (h->transMethod & CFGTBL_Trans_io_accel1 ||
-                               h->transMethod & CFGTBL_Trans_io_accel2) {
-                               hpsa_get_ioaccel_drive_info(h, this_device,
-                                                       lunaddrbytes, id_phys);
-                               atomic_set(&this_device->ioaccel_cmds_out, 0);
-                               ncurrent++;
-                       }
+
+                       if (h->hba_mode_enabled)
+                               /* never use raid mapper in HBA mode */
+                               this_device->offload_enabled = 0;
+                       else if (!(h->transMethod & CFGTBL_Trans_io_accel1 ||
+                               h->transMethod & CFGTBL_Trans_io_accel2))
+                               break;
+
+                       hpsa_get_ioaccel_drive_info(h, this_device,
+                                               lunaddrbytes, id_phys);
+                       atomic_set(&this_device->ioaccel_cmds_out, 0);
+                       ncurrent++;
                        break;
                case TYPE_TAPE:
                case TYPE_MEDIUM_CHANGER: