summaryrefslogtreecommitdiff
path: root/block/blk-settings.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-10-29 19:25:07 +0300
committerJens Axboe <axboe@kernel.dk>2018-11-07 23:42:33 +0300
commit4316b79e4321d4140164e42f228778e5bc66c84f (patch)
treecb499b7b547f1c1d17c0b72fbd77841314c8ff1f /block/blk-settings.c
parent92bc5a24844ada9b010f03c49a493e3edeadaa54 (diff)
downloadlinux-4316b79e4321d4140164e42f228778e5bc66c84f.tar.xz
block: kill legacy parts of timeout handling
The only user of legacy timing now is BSG, which is invoked from the mq timeout handler. Kill the legacy code, and rename the q->rq_timed_out_fn to q->bsg_job_timeout_fn. Reviewed-by: Hannes Reinecke <hare@suse.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 'block/blk-settings.c')
-rw-r--r--block/blk-settings.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/block/blk-settings.c b/block/blk-settings.c
index 39c3c301a687..e3f07d94b18d 100644
--- a/block/blk-settings.c
+++ b/block/blk-settings.c
@@ -32,13 +32,6 @@ void blk_queue_rq_timeout(struct request_queue *q, unsigned int timeout)
}
EXPORT_SYMBOL_GPL(blk_queue_rq_timeout);
-void blk_queue_rq_timed_out(struct request_queue *q, rq_timed_out_fn *fn)
-{
- WARN_ON_ONCE(q->mq_ops);
- q->rq_timed_out_fn = fn;
-}
-EXPORT_SYMBOL_GPL(blk_queue_rq_timed_out);
-
/**
* blk_set_default_limits - reset limits to default values
* @lim: the queue_limits structure to reset