mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
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>
This commit is contained in:
@@ -307,8 +307,8 @@ static enum blk_eh_timer_return bsg_timeout(struct request *rq, bool reserved)
|
||||
enum blk_eh_timer_return ret = BLK_EH_DONE;
|
||||
struct request_queue *q = rq->q;
|
||||
|
||||
if (q->rq_timed_out_fn)
|
||||
ret = q->rq_timed_out_fn(rq);
|
||||
if (q->bsg_job_timeout_fn)
|
||||
ret = q->bsg_job_timeout_fn(rq);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -357,9 +357,9 @@ struct request_queue *bsg_setup_queue(struct device *dev, const char *name,
|
||||
|
||||
q->queuedata = dev;
|
||||
q->bsg_job_fn = job_fn;
|
||||
q->bsg_job_timeout_fn = timeout;
|
||||
blk_queue_flag_set(QUEUE_FLAG_BIDI, q);
|
||||
blk_queue_rq_timeout(q, BLK_DEFAULT_SG_TIMEOUT);
|
||||
q->rq_timed_out_fn = timeout;
|
||||
|
||||
ret = bsg_register_queue(q, dev, name, &bsg_transport_ops);
|
||||
if (ret) {
|
||||
|
||||
Reference in New Issue
Block a user