diff options
| author | Jens Axboe <axboe@kernel.dk> | 2018-10-26 13:26:25 -0400 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2018-11-07 15:42:32 -0500 |
| commit | aae3b069d5ce865ca5ef2902c2a22cef7ab4f3a2 (patch) | |
| tree | dd7f00edf9c6503b020b30d6307afec79641af0d /include/linux | |
| parent | 583d6535cb9dadfd2678acfad27231076eeccf8e (diff) | |
bsg: pass in desired timeout handler
This will ease in the conversion to blk-mq, where we can't set
a timeout handler after queue init.
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Cc: linux-scsi@vger.kernel.org
Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Benjamin Block <bblock@linux.vnet.ibm.com>
Tested-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/bsg-lib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/bsg-lib.h b/include/linux/bsg-lib.h index 6aeaf6472665..b13ae143e7ef 100644 --- a/include/linux/bsg-lib.h +++ b/include/linux/bsg-lib.h | |||
| @@ -72,7 +72,7 @@ struct bsg_job { | |||
| 72 | void bsg_job_done(struct bsg_job *job, int result, | 72 | void bsg_job_done(struct bsg_job *job, int result, |
| 73 | unsigned int reply_payload_rcv_len); | 73 | unsigned int reply_payload_rcv_len); |
| 74 | struct request_queue *bsg_setup_queue(struct device *dev, const char *name, | 74 | struct request_queue *bsg_setup_queue(struct device *dev, const char *name, |
| 75 | bsg_job_fn *job_fn, int dd_job_size); | 75 | bsg_job_fn *job_fn, rq_timed_out_fn *timeout, int dd_job_size); |
| 76 | void bsg_job_put(struct bsg_job *job); | 76 | void bsg_job_put(struct bsg_job *job); |
| 77 | int __must_check bsg_job_get(struct bsg_job *job); | 77 | int __must_check bsg_job_get(struct bsg_job *job); |
| 78 | 78 | ||
