aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2010-02-04 09:43:21 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-02-17 14:22:29 -0500
commitd416b0c75fc52e1ac840e6c8c1857ac52d1d7132 (patch)
tree3f6336cd0480dd6b76f52e6c167d0dd94dfc6d07
parenta08a8471b7aed3d50df8e9c852dc2baa08ec8b01 (diff)
[SCSI] hpsa: when resetting devices, print out which device
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
-rw-r--r--drivers/scsi/hpsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index f889ec8cc48..db12bc2d7d7 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -2141,14 +2141,14 @@ static int hpsa_eh_device_reset_handler(struct scsi_cmnd *scsicmd)
2141 h = sdev_to_hba(scsicmd->device); 2141 h = sdev_to_hba(scsicmd->device);
2142 if (h == NULL) /* paranoia */ 2142 if (h == NULL) /* paranoia */
2143 return FAILED; 2143 return FAILED;
2144 dev_warn(&h->pdev->dev, "resetting drive\n");
2145
2146 dev = scsicmd->device->hostdata; 2144 dev = scsicmd->device->hostdata;
2147 if (!dev) { 2145 if (!dev) {
2148 dev_err(&h->pdev->dev, "hpsa_eh_device_reset_handler: " 2146 dev_err(&h->pdev->dev, "hpsa_eh_device_reset_handler: "
2149 "device lookup failed.\n"); 2147 "device lookup failed.\n");
2150 return FAILED; 2148 return FAILED;
2151 } 2149 }
2150 dev_warn(&h->pdev->dev, "resetting device %d:%d:%d:%d\n",
2151 h->scsi_host->host_no, dev->bus, dev->target, dev->lun);
2152 /* send a reset to the SCSI LUN which the command was sent to */ 2152 /* send a reset to the SCSI LUN which the command was sent to */
2153 rc = hpsa_send_reset(h, dev->scsi3addr); 2153 rc = hpsa_send_reset(h, dev->scsi3addr);
2154 if (rc == 0 && wait_for_device_to_become_ready(h, dev->scsi3addr) == 0) 2154 if (rc == 0 && wait_for_device_to_become_ready(h, dev->scsi3addr) == 0)