block: get rid of q->softirq_done_fn()

With the legacy path gone, all we do is funnel it through the
mq_ops->complete() operation.

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:
Jens Axboe 2018-10-31 09:43:30 -06:00
parent 7d692330e7
commit c7bb9ad174
5 changed files with 12 additions and 21 deletions

View file

@ -115,6 +115,7 @@ typedef void (busy_tag_iter_fn)(struct request *, void *, bool);
typedef int (poll_fn)(struct blk_mq_hw_ctx *, unsigned int);
typedef int (map_queues_fn)(struct blk_mq_tag_set *set);
typedef bool (busy_fn)(struct request_queue *);
typedef void (complete_fn)(struct request *);
struct blk_mq_ops {
@ -142,7 +143,7 @@ struct blk_mq_ops {
*/
poll_fn *poll;
softirq_done_fn *complete;
complete_fn *complete;
/*
* Called when the block layer side of a hardware queue has been