summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-03-13 19:28:39 +0300
committerJens Axboe <axboe@kernel.dk>2018-03-13 20:40:21 +0300
commit31156ec378c2ed10330c8c06bbf36fb7d7a55506 (patch)
tree7a5b34322146d3e47aba04c347eca3d1919c8fe5 /block
parentce3077ee80d6ac1087c06441f4c63ce5f13ef12c (diff)
downloadlinux-31156ec378c2ed10330c8c06bbf36fb7d7a55506.tar.xz
bsg-lib: introduce a timeout field in struct bsg_job
The zfcp driver wants to know the timeout for a bsg job, so add a field to struct bsg_job for it in preparation of not exposing the request to the bsg-lib users. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Benjamin Block <bblock@linux.vnet.ibm.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r--block/bsg-lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/bsg-lib.c b/block/bsg-lib.c
index b4fe1a48f111..fb509779a090 100644
--- a/block/bsg-lib.c
+++ b/block/bsg-lib.c
@@ -132,6 +132,7 @@ static int bsg_prepare_job(struct device *dev, struct request *req)
struct bsg_job *job = blk_mq_rq_to_pdu(req);
int ret;
+ job->timeout = req->timeout;
job->request = rq->cmd;
job->request_len = rq->cmd_len;