]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
scsi: core: use scmd_printk() to print which command timed out
authorMaurizio Lombardi <mlombard@redhat.com>
Tue, 2 Jul 2019 11:27:05 +0000 (13:27 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 12 Jul 2019 00:30:02 +0000 (20:30 -0400)
commit463cdad83823830dd59572fb81ac243f6a44b589
tree7be34e5bfe6a66b8112e2dad778204e8e46f2755
parent893ca250edfcd0489a49446048aa0d900d6862fc
scsi: core: use scmd_printk() to print which command timed out

With a possibly faulty disk the following messages may appear in the logs:

kernel: sd 0:0:9:0: timing out command, waited 180s
kernel: sd 0:0:9:0: timing out command, waited 20s
kernel: sd 0:0:9:0: timing out command, waited 20s
kernel: sd 0:0:9:0: timing out command, waited 60s
kernel: sd 0:0:9:0: timing out command, waited 20s

This is not very informative because it's not possible to identify the
command that timed out.

This patch replaces sdev_printk() with scmd_printk().

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c