[RFC v3 2/2] pmem: enable pmem_submit_bio for asynchronous flush

2022-01-11 Thread Pankaj Gupta
Return from "pmem_submit_bio" when asynchronous flush is still in progress in other context. Signed-off-by: Pankaj Gupta --- drivers/nvdimm/pmem.c| 15 --- drivers/nvdimm/region_devs.c | 4 +++- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git

[RFC v3 1/2] virtio-pmem: Async virtio-pmem flush

2022-01-11 Thread Pankaj Gupta
Enable asynchronous flush for virtio pmem using work queue. Also, coalesce the flush requests when a flush is already in process. This functionality is copied from md/RAID code. When a flush is already in process, new flush requests wait till previous flush completes in another context (work

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

2022-01-11 Thread Pankaj Gupta
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