Skip to content

RFC virtio-pmem: Asynchronous flush

Pankaj Gupta lkml nvdimm virtualization 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 RFC Latest2 patches 9 repliesIn review
  2. v2 RFC2 patches 9 repliesSuperseded

Changes in v3 from the cover letter

- Improve commit log message - patch1.
- Improve return error handling for Async flush.
- declare'INIT_WORK' only once.
- More testing and bug fix.

[1] https://marc.info/?l=linux-kernel&m=157446316409937&w=2

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2virtio-pmem: Async virtio-pmem flushdrivers/nvdimm/nd_virtio.c drivers/nvdimm/virtio_pmem.c drivers/nvdimm/virtio_pmem.h+83 -174 replies
2/2pmem: enable pmem_submit_bio for asynchronous flushdrivers/nvdimm/pmem.c drivers/nvdimm/region_devs.c+15 -44 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [RFC v3 0/2] virtio-pmem: Asynchronous flush

Jeff reported preflush order issue with the existing implementation of virtio pmem preflush. Dan suggested[1] to implement asynchronous flush for virtio pmem using work queue as done in md/RAID. This patch series intends to solve the preflush ordering issue and makes the flush asynchronous for the submitting thread. Also, adds the flush coalscing logic.

Submitting this RFC v3 series for review. Thank You!

RFC v2 -> RFC v3
- Improve commit log message - patch1.
- Improve return error handling for Async flush.
- declare'INIT_WORK' only once.
- More testing and bug fix.

[1] https://marc.info/?l=linux-kernel&m=157446316409937&w=2

Pankaj Gupta (2):
virtio-pmem: Async virtio-pmem flush
pmem: enable pmem_submit_bio for asynchronous flush

 drivers/nvdimm/nd_virtio.c   | 74 +++++++++++++++++++++++++++---------
 drivers/nvdimm/pmem.c        | 15 ++++++--
 drivers/nvdimm/region_devs.c |  4 +-
 drivers/nvdimm/virtio_pmem.c | 10 +++++
 drivers/nvdimm/virtio_pmem.h | 16 ++++++++
 5 files changed, 98 insertions(+), 21 deletions(-)
Signature · 1 line
2.25.1