瀏覽代碼

[SCSI] Print failed commands

When a request fails we print the sense data but not the actual command
that failed.  Add a printout of the operation + CDB for failed commands.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Martin K. Petersen 16 年之前
父節點
當前提交
002b1eb2c0
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/scsi/scsi_lib.c

+ 1 - 0
drivers/scsi/scsi_lib.c

@@ -896,6 +896,7 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes)
 			scsi_print_result(cmd);
 			if (driver_byte(result) & DRIVER_SENSE)
 				scsi_print_sense("", cmd);
+			scsi_print_command(cmd);
 		}
 		blk_end_request_all(req, -EIO);
 		scsi_next_command(cmd);