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>
This commit is contained in:

committed by
Jens Axboe

parent
44e44b29fb
commit
64c7f1d157
@@ -579,7 +579,7 @@ static int st_scsi_execute(struct st_request *SRpnt, const unsigned char *cmd,
|
||||
memset(rq->cmd, 0, BLK_MAX_CDB);
|
||||
memcpy(rq->cmd, cmd, rq->cmd_len);
|
||||
req->timeout = timeout;
|
||||
req->retries = retries;
|
||||
rq->retries = retries;
|
||||
req->end_io_data = SRpnt;
|
||||
|
||||
blk_execute_rq_nowait(req->q, NULL, req, 1, st_scsi_execute_end);
|
||||
|
Reference in New Issue
Block a user