All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] virtio-blk: support polling I/O and mq_ops->queue_rqs()
@ 2022-04-04  9:28 Suwan Kim
  2022-04-04  9:28 ` [PATCH v4 1/2] virtio-blk: support polling I/O Suwan Kim
  2022-04-04  9:28 ` [PATCH v4 2/2] virtio-blk: support mq_ops->queue_rqs() Suwan Kim
  0 siblings, 2 replies; 12+ messages in thread
From: Suwan Kim @ 2022-04-04  9:28 UTC (permalink / raw)
  To: mst, jasowang, stefanha, pbonzini, mgurtovoy, dongli.zhang
  Cc: virtualization, linux-block, Suwan Kim

This patch serise adds support for polling I/O and mq_ops->queue_rqs()
to virtio-blk driver.

Changes

v3 -> v4
    - patch1 : virtblk_poll
        - Add print the number of default/read/poll queues in init_vq()
        - Add blk_mq_start_stopped_hw_queues() to virtblk_poll()
              virtblk_poll()
                  ...
                  if (req_done)
		                   blk_mq_start_stopped_hw_queues(vblk->disk->queue, true);
                  ...

    - patch2 : virtio_queue_rqs
        - Modify virtio_queue_rqs() to hold lock only once when it adds
          requests to virtqueue just before virtqueue notify.
	  It will guarantee that virtio_queue_rqs() will not use
	  previous req again.

v2 -> v3
        - Fix warning by kernel test robot
          
            static int virtblk_poll()
                ...
                if (!blk_mq_add_to_batch(req, iob, virtblk_result(vbr),
                                                   -> vbr->status,

v1 -> v2
        - To receive the number of poll queues from user,
          use module parameter instead of QEMU uapi change.

        - Add the comment about virtblk_map_queues().

        - Add support for mq_ops->queue_rqs() to implement submit side
          batch.

Suwan Kim (2):
  virtio-blk: support polling I/O
  virtio-blk: support mq_ops->queue_rqs()

 drivers/block/virtio_blk.c | 222 ++++++++++++++++++++++++++++++++++---
 1 file changed, 207 insertions(+), 15 deletions(-)

-- 
2.26.3


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH v4 0/2] virtio-blk: support polling I/O and mq_ops->queue_rqs()
@ 2022-04-05  5:31 Suwan Kim
  2022-04-05  5:31 ` [PATCH v4 1/2] virtio-blk: support polling I/O Suwan Kim
  0 siblings, 1 reply; 12+ messages in thread
From: Suwan Kim @ 2022-04-05  5:31 UTC (permalink / raw)
  To: mst, jasowang, stefanha, pbonzini, mgurtovoy, dongli.zhang
  Cc: virtualization, linux-block, Suwan Kim

Sorry. I forgot to fix module parameter name in patch1.
So I resend it.

This patch serise adds support for polling I/O and mq_ops->queue_rqs()
to virtio-blk driver.

Changes

v3 -> v4
    - patch1 : virtblk_poll
        - Add print the number of default/read/poll queues in init_vq()
        - Add blk_mq_start_stopped_hw_queues() to virtblk_poll()
              virtblk_poll()
                  ...
                  if (req_done)
                                   blk_mq_start_stopped_hw_queues(vblk->disk->queue, true);
                  ...

    - patch2 : virtio_queue_rqs
        - Modify virtio_queue_rqs() to hold lock only once when it adds
          requests to virtqueue just before virtqueue notify.
          It will guarantee that virtio_queue_rqs() will not use
          previous req again.

v2 -> v3
        - Fix warning by kernel test robot

            static int virtblk_poll()
                ...
                if (!blk_mq_add_to_batch(req, iob, virtblk_result(vbr),
                                                   -> vbr->status,

v1 -> v2
        - To receive the number of poll queues from user,
          use module parameter instead of QEMU uapi change.

        - Add the comment about virtblk_map_queues().

        - Add support for mq_ops->queue_rqs() to implement submit side
          batch.


Suwan Kim (2):
  virtio-blk: support polling I/O
  virtio-blk: support mq_ops->queue_rqs()

 drivers/block/virtio_blk.c | 222 ++++++++++++++++++++++++++++++++++---
 1 file changed, 207 insertions(+), 15 deletions(-)

-- 
2.26.3


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-04-05 20:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04  9:28 [PATCH v4 0/2] virtio-blk: support polling I/O and mq_ops->queue_rqs() Suwan Kim
2022-04-04  9:28 ` [PATCH v4 1/2] virtio-blk: support polling I/O Suwan Kim
2022-04-05  5:21   ` Suwan Kim
2022-04-04  9:28 ` [PATCH v4 2/2] virtio-blk: support mq_ops->queue_rqs() Suwan Kim
2022-04-05  5:31 [PATCH v4 0/2] virtio-blk: support polling I/O and mq_ops->queue_rqs() Suwan Kim
2022-04-05  5:31 ` [PATCH v4 1/2] virtio-blk: support polling I/O Suwan Kim
2022-04-05  7:26   ` Stefan Hajnoczi
2022-04-05  7:26     ` Stefan Hajnoczi
2022-04-05 10:08     ` Suwan Kim
2022-04-05  8:51   ` Christoph Hellwig
2022-04-05  8:51     ` Christoph Hellwig
2022-04-05 10:30     ` Suwan Kim
2022-04-05 14:35     ` Suwan Kim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.