aio-posix: keep aio_notify_me disabled during polling
Status from this message: Thanks, applied to my block tree:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 4 repliesApplied
- v23 patches 4 repliesSuperseded
- v13 patches 6 repliesSuperseded
Changes in v3 from the cover letter
* Use smp_wmb() in aio_notify_accept() [Paolo]
* Flatten if statement in aio_poll() [Paolo]
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | async: rename event_notifier_dummy_cb/poll()util/ | +4 | 0 replies | |
| 2/3 | async: always set ctx->notified in aio_notify()util/ | +21 | 2 replies | |
| 3/3 | aio-posix: keep aio_notify_me disabled during pollingutil/ | +25 | 0 replies |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Philippe Mathieu-Daudé | Paolo Bonzini |
|---|---|---|
| Series | R-b | |
| 1/3 | R-b | |
| 2/3 | R-b | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/3] aio-posix: keep aio_notify_me disabled during polling
v3:
* Use smp_wmb() in aio_notify_accept() [Paolo]
* Flatten if statement in aio_poll() [Paolo]
v2:
* Added smp_mb() in aio_notify_accept() [Paolo]
* Added comments about memory barrier pairing [Paolo]
* Eliminated extra aio_compute_timeout() before calling ppoll()
This patch series eliminates ctx->notifier EventNotifier activity when aio_poll() is in polling mode. There is no need to use the EventNotifier since a polling handler can detect that aio_notify() has been called by monitoring a field in memory instead.
Optimizing out the EventNotifier calls improves null-co random read 4KB iodepth=1 IOPS by 18%.
I have not modified docs/spin/aio_notify*.promela because I'm not familiar with the SPIN model checker.
Stefan Hajnoczi (3):
async: rename event_notifier_dummy_cb/poll()
async: always set ctx->notified in aio_notify()
aio-posix: keep aio_notify_me disabled during polling
util/aio-posix.c | 47 +++++++++++++++++++++++++---------------------- util/async.c | 36 +++++++++++++++++++++++------------- 2 files changed, 48 insertions(+), 35 deletions(-)
Signature · 1 line
2.26.2