diff options
author | Christoph Hellwig <hch@lst.de> | 2017-04-05 13:18:12 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-05 14:05:08 -0400 |
commit | 64c7f1d1572cacadfc0a4ca5a937aeffa486de58 (patch) | |
tree | 9b6a5030c06ba94e629e1411bebdb01b1735de78 /drivers/scsi/sg.c | |
parent | 44e44b29fb99a299dfaa404a59fa35519a197c6b (diff) |
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/sg.c')
-rw-r--r-- | drivers/scsi/sg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 29b86505f796..b61cc3c512d3 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c | |||
@@ -1716,7 +1716,7 @@ sg_start_req(Sg_request *srp, unsigned char *cmd) | |||
1716 | 1716 | ||
1717 | srp->rq = rq; | 1717 | srp->rq = rq; |
1718 | rq->end_io_data = srp; | 1718 | rq->end_io_data = srp; |
1719 | rq->retries = SG_DEFAULT_RETRIES; | 1719 | req->retries = SG_DEFAULT_RETRIES; |
1720 | 1720 | ||
1721 | if ((dxfer_len <= 0) || (dxfer_dir == SG_DXFER_NONE)) | 1721 | if ((dxfer_len <= 0) || (dxfer_dir == SG_DXFER_NONE)) |
1722 | return 0; | 1722 | return 0; |