scsi: smartpqi: enhance drive offline informational message
authorKevin Barnett <kevin.barnett@microsemi.com>
Wed, 31 Aug 2016 19:54:29 +0000 (14:54 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 2 Sep 2016 10:21:37 +0000 (06:21 -0400)
Made a couple of error messages more verbose.

Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Scott Benesh <scott.benesh@microsemi.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi_init.c

index 9922e31f0b145f7c4c7f5e96c3524308c3d77529..198a7c2ab9603e469fca97af9c24f5ae6c49ae13 100644 (file)
@@ -2298,11 +2298,16 @@ static inline void pqi_aio_path_disabled(struct pqi_io_request *io_request)
 static inline void pqi_take_device_offline(struct scsi_device *sdev)
 {
        struct pqi_ctrl_info *ctrl_info;
+       struct pqi_scsi_dev *device;
 
        if (scsi_device_online(sdev)) {
                scsi_device_set_state(sdev, SDEV_OFFLINE);
                ctrl_info = shost_to_hba(sdev->host);
                schedule_delayed_work(&ctrl_info->rescan_work, 0);
+               device = sdev->hostdata;
+               dev_err(&ctrl_info->pci_dev->dev, "offlined scsi %d:%d:%d:%d\n",
+                       ctrl_info->scsi_host->host_no, device->bus,
+                       device->target, device->lun);
        }
 }