From: Kevin Barnett Date: Wed, 31 Aug 2016 19:54:29 +0000 (-0500) Subject: scsi: smartpqi: enhance drive offline informational message X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=e58081a714275d1490e470bdaf1b5dc23043cf2a;p=deliverable%2Flinux.git scsi: smartpqi: enhance drive offline informational message Made a couple of error messages more verbose. Reviewed-by: Scott Teel Reviewed-by: Scott Benesh Reviewed-by: Johannes Thumshirn Reviewed-by: Tomas Henzl Signed-off-by: Kevin Barnett Signed-off-by: Don Brace Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c index 9922e31f0b14..198a7c2ab960 100644 --- a/drivers/scsi/smartpqi/smartpqi_init.c +++ b/drivers/scsi/smartpqi/smartpqi_init.c @@ -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); } }