From: Don Brace Date: Fri, 6 Nov 2015 14:04:54 +0000 (-0800) Subject: hpsa: cleanup update scsi devices X-Git-Tag: v4.1.12-92~189^2~5 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a8e9df73c7f740d78a3402aff0d9f88d325efe21;p=users%2Fjedix%2Flinux-maple.git hpsa: cleanup update scsi devices showing that tables have been updated unnecessarily. Signed-off-by: Don Brace Orabug: 22075051 Acked-by: Chuck Anderson --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 0a00385af8df4..d95762b88c35f 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -1379,8 +1379,9 @@ static inline int device_updated(struct hpsa_scsi_dev_t *dev1, return 1; if (dev1->offload_enabled != dev2->offload_enabled) return 1; - if (dev1->queue_depth != dev2->queue_depth) - return 1; + if (!is_logical_dev_addr_mode(dev1->scsi3addr)) + if (dev1->queue_depth != dev2->queue_depth) + return 1; return 0; } @@ -3889,7 +3890,6 @@ static void hpsa_update_scsi_devices(struct ctlr_info *h, int hostno) 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); hpsa_get_path_info(this_device, lunaddrbytes, id_phys);