aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r--drivers/scsi/scsi_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index 91c74c55aa5e..e5a9526d2037 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -706,7 +706,7 @@ static struct scsi_cmnd *scsi_end_request(struct scsi_cmnd *cmd, int error,
706 leftover = req->data_len; 706 leftover = req->data_len;
707 707
708 /* kill remainder if no retrys */ 708 /* kill remainder if no retrys */
709 if (error && blk_noretry_request(req)) 709 if (error && scsi_noretry_cmd(cmd))
710 blk_end_request(req, error, leftover); 710 blk_end_request(req, error, leftover);
711 else { 711 else {
712 if (requeue) { 712 if (requeue) {