From: Don Brace Date: Sat, 18 Jul 2015 16:12:49 +0000 (-0500) Subject: hpsa: cleanup update scsi devices X-Git-Tag: v4.14-rc1~4692^2~95 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9384950809d96ee08dcd7bb2eadc9628b99d0474;p=platform%2Fkernel%2Flinux-rpi.git hpsa: cleanup update scsi devices showing that tables have been updated unnecessarily. Reviewed-by: Kevin Barnett Reviewed-by: Scott Teel Reviewed-by: Tomas Henzl Signed-off-by: Don Brace Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 43c34a6..9d32913 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);