]> git.karo-electronics.de Git - linux-beck.git/commitdiff
scsi: use shost argument in scsi_eh_prt_fail_stats
authorHannes Reinecke <hare@suse.de>
Fri, 24 Oct 2014 12:27:03 +0000 (14:27 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 12 Nov 2014 10:16:07 +0000 (11:16 +0100)
The EH statistics are per host, so we should be using
shost_printk() here.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Suggested-by: Robert Elliott <elliott@hp.com>
Reviewed-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/scsi_error.c

index c2bef46e90e064537ac5af2e84b4765589587701..44e2576878a39da40f329dd45138a2bab3bcaeab 100644 (file)
@@ -355,7 +355,7 @@ static inline void scsi_eh_prt_fail_stats(struct Scsi_Host *shost,
 
                if (cmd_cancel || cmd_failed) {
                        SCSI_LOG_ERROR_RECOVERY(3,
-                               sdev_printk(KERN_INFO, sdev,
+                               shost_printk(KERN_INFO, shost,
                                            "%s: cmds failed: %d, cancel: %d\n",
                                            __func__, cmd_failed,
                                            cmd_cancel));