[dm-devel] [PATCH V5 03/12] block: create io poll context for submission and poll task
Christoph Hellwig
hch at infradead.org
Mon Apr 12 10:19:24 UTC 2021
> /**
> * blk_poll - poll for IO completions
> @@ -3875,6 +3886,9 @@ int blk_poll(struct request_queue *q, blk_qc_t cookie, bool spin)
> if (current->plug)
> blk_flush_plug_list(current->plug, false);
>
> + if (!queue_is_mq(q))
> + return blk_bio_poll(q, cookie, spin);
> +
> hctx = q->queue_hw_ctx[blk_qc_t_to_queue_num(cookie)];
Before doing this, blk_poll needs to be split into the public blk_poll
that should go into blk_poll, and a blk_mq_poll that should remain in
blk-mq.c.
More information about the dm-devel
mailing list