summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_error.c
diff options
context:
space:
mode:
authorChristoph Hellwig2017-04-05 19:18:12 +0200
committerJens Axboe2017-04-05 20:05:08 +0200
commit64c7f1d1572cacadfc0a4ca5a937aeffa486de58 (patch)
tree9b6a5030c06ba94e629e1411bebdb01b1735de78 /drivers/scsi/scsi_error.c
parentnvme: move the retries count to struct nvme_request (diff)
downloadkernel-qcow2-linux-64c7f1d1572cacadfc0a4ca5a937aeffa486de58.tar.gz
kernel-qcow2-linux-64c7f1d1572cacadfc0a4ca5a937aeffa486de58.tar.xz
kernel-qcow2-linux-64c7f1d1572cacadfc0a4ca5a937aeffa486de58.zip
block, scsi: move the retries field to struct scsi_request
Instead of bloating the generic struct request with it. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r--drivers/scsi/scsi_error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
index f2cafae150bc..2db412dd4b44 100644
--- a/drivers/scsi/scsi_error.c
+++ b/drivers/scsi/scsi_error.c
@@ -1988,7 +1988,7 @@ static void scsi_eh_lock_door(struct scsi_device *sdev)
req->rq_flags |= RQF_QUIET;
req->timeout = 10 * HZ;
- req->retries = 5;
+ rq->retries = 5;
blk_execute_rq_nowait(req->q, NULL, req, 1, eh_lock_door_done);
}