From: Robert Elliott <elliott@xxxxxx> offload_enabled changes are deferred until after the added/updated prints occur, so the values are incorrect. defer printing SSD Smart Path Enabled status information until the information is correct Reviewed-by: Scott Teel <scott.teel@xxxxxxxx> Reviewed-by: Kevin Barnett <kevin.barnett@xxxxxxxx> Signed-off-by: Robert Elliott <elliott@xxxxxx> Signed-off-by: Don Brace <don.brace@xxxxxxxx> --- drivers/scsi/hpsa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index accfede..e151662 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -1065,7 +1065,7 @@ lun_assigned: device->raid_level > RAID_UNKNOWN ? "RAID-?" : raid_label[device->raid_level], device->offload_config ? '+' : '-', - device->offload_enabled ? '+' : '-', + device->offload_to_be_enabled ? '+' : '-', device->expose_state); return 0; } @@ -1116,7 +1116,7 @@ static void hpsa_scsi_update_entry(struct ctlr_info *h, int hostno, h->dev[entry]->raid_level > RAID_UNKNOWN ? "RAID-?" : raid_label[h->dev[entry]->raid_level], h->dev[entry]->offload_config ? '+' : '-', - h->dev[entry]->offload_enabled ? '+' : '-', + h->dev[entry]->offload_to_be_enabled ? '+' : '-', h->dev[entry]->expose_state); } @@ -1154,7 +1154,7 @@ static void hpsa_scsi_replace_entry(struct ctlr_info *h, int hostno, new_entry->raid_level > RAID_UNKNOWN ? "RAID-?" : raid_label[new_entry->raid_level], new_entry->offload_config ? '+' : '-', - new_entry->offload_enabled ? '+' : '-', + new_entry->offload_to_be_enabled ? '+' : '-', new_entry->expose_state); } -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html