diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-10-26 11:26:25 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-07 13:42:32 -0700 |
commit | aae3b069d5ce865ca5ef2902c2a22cef7ab4f3a2 (patch) | |
tree | dd7f00edf9c6503b020b30d6307afec79641af0d /include | |
parent | 583d6535cb9dadfd2678acfad27231076eeccf8e (diff) | |
download | linux-riscv-aae3b069d5ce865ca5ef2902c2a22cef7ab4f3a2.tar.gz linux-riscv-aae3b069d5ce865ca5ef2902c2a22cef7ab4f3a2.tar.bz2 linux-riscv-aae3b069d5ce865ca5ef2902c2a22cef7ab4f3a2.zip |
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')
-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 { void bsg_job_done(struct bsg_job *job, int result, unsigned int reply_payload_rcv_len); struct request_queue *bsg_setup_queue(struct device *dev, const char *name, - bsg_job_fn *job_fn, int dd_job_size); + bsg_job_fn *job_fn, rq_timed_out_fn *timeout, int dd_job_size); void bsg_job_put(struct bsg_job *job); int __must_check bsg_job_get(struct bsg_job *job); |