Commit ecf418d1 authored by Joe Handzik's avatar Joe Handzik Committed by James Bottomley

hpsa: Get queue depth from identify physical bmic for physical disks.

get drive queue depth to help avoid task set full conditions.
Reviewed-by: default avatarScott Teel <scott.teel@pmcs.com>
Reviewed-by: default avatarKevin Barnett <kevin.barnett@pmcs.com>
Reviewed-by: default avatarTomas Henzl <thenzl@redhat.com>
Reviewed-by: default avatarHannes Reinecke <hare@Suse.de>
Signed-off-by: default avatarJoe Handzik <joseph.t.handzik@hp.com>
Signed-off-by: default avatarDon Brace <don.brace@pmcs.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent a3144e0b
...@@ -3464,29 +3464,22 @@ static void hpsa_update_scsi_devices(struct ctlr_info *h, int hostno) ...@@ -3464,29 +3464,22 @@ static void hpsa_update_scsi_devices(struct ctlr_info *h, int hostno)
ncurrent++; ncurrent++;
break; break;
case TYPE_DISK: case TYPE_DISK:
if (h->hba_mode_enabled) { if (i >= nphysicals) {
/* 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;
ncurrent++; ncurrent++;
break; break;
} }
if (h->transMethod & CFGTBL_Trans_io_accel1 ||
h->transMethod & CFGTBL_Trans_io_accel2) { if (h->hba_mode_enabled)
hpsa_get_ioaccel_drive_info(h, this_device, /* never use raid mapper in HBA mode */
lunaddrbytes, id_phys); this_device->offload_enabled = 0;
atomic_set(&this_device->ioaccel_cmds_out, 0); else if (!(h->transMethod & CFGTBL_Trans_io_accel1 ||
ncurrent++; 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; break;
case TYPE_TAPE: case TYPE_TAPE:
case TYPE_MEDIUM_CHANGER: case TYPE_MEDIUM_CHANGER:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment