Skip to content

block/nvme: support nested aio_poll()

Stefan Hajnoczi qemu-devel 2 versions – Applied

Status from this message: Thanks, applied to my HEAD tree:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 2 repliesApplied
  2. v17 patches 16 repliesSuperseded

Changes in v2 from the cover letter

* Reword comment in Patch 1 explainin why its safe not to hold q->lock [Sergio]
* Fix s/unwiedly/unwieldy/ typo in the Patch 6 commit description [Philippe]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/7block/nvme: poll queues without q->lockblock/nvme.c+12 -01 reply
2/7block/nvme: drop tautologous assertionblock/nvme.c+0 -10 replies
3/7block/nvme: don't access CQE after moving cq.headblock/nvme.c+4 -10 replies
4/7block/nvme: switch to a NVMeRequest freelistblock/nvme.c+54 -270 replies
5/7block/nvme: clarify that free_req_queue is protected by q->lockblock/nvme.c+1 -10 replies
6/7block/nvme: keep BDRVNVMeState pointer in NVMeQueuePairblock/nvme.c+38 -320 replies
7/7block/nvme: support nested aio_poll()block/nvme.c block/trace-events+60 -90 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchSergio LopezPhilippe Mathieu-Daudé
1/7R-b
2/7R-b R-b
3/7R-b R-b
4/7R-b
5/7R-b R-b
6/7R-b R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/7] block/nvme: support nested aio_poll()

v2:
* Reword comment in Patch 1 explainin why its safe not to hold q->lock [Sergio]
* Fix s/unwiedly/unwieldy/ typo in the Patch 6 commit description [Philippe]

This series allows aio_poll() to work from I/O request completion callbacks. QEMU block drivers are supposed to support this because some code paths rely on this behavior.

There was no measurable performance difference with nested aio_poll() support.

This patch series also contains cleanups that I made while examining and benchmarking the code.

Stefan Hajnoczi (7):
block/nvme: poll queues without q->lock
block/nvme: drop tautologous assertion
block/nvme: don't access CQE after moving cq.head block/nvme: switch to a NVMeRequest freelist block/nvme: clarify that free_req_queue is protected by q->lock block/nvme: keep BDRVNVMeState pointer in NVMeQueuePair block/nvme: support nested aio_poll()

 block/nvme.c       | 220 ++++++++++++++++++++++++++++++++-------------
 block/trace-events |   2 +-
 2 files changed, 160 insertions(+), 62 deletions(-)
Signature · 1 line
2.26.2