scsi: hpsa: fix volume offline state
authorTomas Henzl <thenzl@redhat.com>
Mon, 20 Mar 2017 15:42:48 +0000 (16:42 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Mar 2017 14:12:29 +0000 (10:12 -0400)
In a previous patch a hpsa_scsi_dev_t.volume_offline update line has
been removed, so let us put it back..

Fixes: 85b29008d8 (hpsa: update check for logical volume status)
Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Acked-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hpsa.c

index 0d0be7754a653120a4e08c3897e37c572d3cda49..9d659aaace15d0e3ec28c69a14688b81a544d8b7 100644 (file)
@@ -3885,6 +3885,7 @@ static int hpsa_update_device_info(struct ctlr_info *h,
                if (h->fw_support & MISC_FW_RAID_OFFLOAD_BASIC)
                        hpsa_get_ioaccel_status(h, scsi3addr, this_device);
                volume_offline = hpsa_volume_offline(h, scsi3addr);
+               this_device->volume_offline = volume_offline;
                if (volume_offline == HPSA_LV_FAILED) {
                        rc = HPSA_LV_FAILED;
                        dev_err(&h->pdev->dev,