diff options
| author | Jens Axboe <[email protected]> | 2018-10-26 11:26:25 -0600 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2018-11-07 13:42:32 -0700 |
| 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 <[email protected]>
Cc: [email protected]
Reviewed-by: Hannes Reinecke <[email protected]>
Tested-by: Benjamin Block <[email protected]>
Tested-by: Ming Lei <[email protected]>
Reviewed-by: Omar Sandoval <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
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 { 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); |