Re: [PATCH V3 04/13] block: create io poll context for submission and poll task

From
Hannes Reinecke <hare@suse.de>
Date
2021-03-24 13:27:16
Also in
dm-devel
Reply to
Ming Lei, 2021-03-24
On 3/24/21 1:19 PM, Ming Lei wrote:
Create per-task io poll context for both IO submission and poll task
if the queue is bio based and supports polling.

This io polling context includes two queues:

1) submission queue(sq) for storing HIPRI bio, written by submission task
    and read by poll task.
2) polling queue(pq) for holding data moved from sq, only used in poll
    context for running bio polling.

Following patches will support bio based io polling.

Signed-off-by: Ming Lei <redacted>
---
  block/blk-core.c          | 71 ++++++++++++++++++++++++++++++++-------
  block/blk-ioc.c           |  1 +
  block/blk-mq.c            | 14 ++++++++
  block/blk.h               | 45 +++++++++++++++++++++++++
  include/linux/iocontext.h |  2 ++
  5 files changed, 121 insertions(+), 12 deletions(-)
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                Kernel Storage Architect
hare@suse.de                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer
Thread (37 messages) 37 messages, 6 authors, last reply 2021-03-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help