diff options
author | Michael Kelley <mikelley@microsoft.com> | 2021-06-04 10:21:02 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-06-15 22:21:44 -0400 |
commit | 08f76547f08d94f079c13c8031c46a69cd01edd6 (patch) | |
tree | 832ffd41353ffb662ab8cd680493d23333334216 /drivers/scsi/initio.h | |
parent | d46748590a8538aeaf2349d9539f571708500a54 (diff) | |
download | lwn-08f76547f08d94f079c13c8031c46a69cd01edd6.tar.gz lwn-08f76547f08d94f079c13c8031c46a69cd01edd6.zip |
scsi: storvsc: Update error logging
When an I/O error is reported by the underlying Hyper-V host, current code
provides details only when the logging level is set to WARN, making it more
difficult to diagnose problems in live customer situations. Fix this by
reporting details at ERROR level, which is the default. Also add more
information, including the Hyper-V error code, and the tag # so that the
message can be matched with messages at the SCSI and blk-mq levels.
Also, sense information logging is inconsistent and duplicative. The
existence of sense info is first logged at WARN level, and then full sense
info is logged at ERROR level. Fix this by removing the logging of the
existence of sense info, and change the logging of full sense info to WARN
level in favor of letting the generic SCSI layer handle such logging. With
the change to WARN level, it's no longer necessary to filter out as noise
any NOT READY sense info generated by the virtual DVD device.
Link: https://lore.kernel.org/r/1622827263-12516-2-git-send-email-mikelley@microsoft.com
Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/initio.h')
0 files changed, 0 insertions, 0 deletions