diff options
author | Christoph Hellwig <hch@lst.de> | 2017-04-05 19:18:12 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-05 12:05:08 -0600 |
commit | 64c7f1d1572cacadfc0a4ca5a937aeffa486de58 (patch) | |
tree | 9b6a5030c06ba94e629e1411bebdb01b1735de78 /drivers/scsi/scsi_error.c | |
parent | 44e44b29fb99a299dfaa404a59fa35519a197c6b (diff) | |
download | lwn-64c7f1d1572cacadfc0a4ca5a937aeffa486de58.tar.gz lwn-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.c | 2 |
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); } |