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>
This commit is contained in:

committed by
Tejun Heo

parent
b525e7731b
commit
3852e37382
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user