diff options
author | Hannes Reinecke <hare@suse.de> | 2016-04-04 11:44:01 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-04-04 18:07:41 +0200 |
commit | 3852e37382664a06cd006bb389a8223e32cedf45 (patch) | |
tree | bcdb3a96ee06503433225cde2d3d8dd84d60213a /drivers/scsi/scsi_error.c | |
parent | libata-scsi: use ata_scsi_set_sense() (diff) | |
download | linux-3852e37382664a06cd006bb389a8223e32cedf45.tar.xz linux-3852e37382664a06cd006bb389a8223e32cedf45.zip |
libata: evaluate SCSI sense code
Whenever a sense code is set it would need to be evaluated to
update the error mask.
tj: Cosmetic formatting updates.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r-- | drivers/scsi/scsi_error.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index 984ddcb4786d..a8b610eaa0ca 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -452,7 +452,7 @@ static void scsi_report_sense(struct scsi_device *sdev, * When a deferred error is detected the current command has * not been executed and needs retrying. */ -static int scsi_check_sense(struct scsi_cmnd *scmd) +int scsi_check_sense(struct scsi_cmnd *scmd) { struct scsi_device *sdev = scmd->device; struct scsi_sense_hdr sshdr; @@ -602,6 +602,7 @@ static int scsi_check_sense(struct scsi_cmnd *scmd) return SUCCESS; } } +EXPORT_SYMBOL_GPL(scsi_check_sense); static void scsi_handle_queue_ramp_up(struct scsi_device *sdev) { |