qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/2] Fix aio_notify_accept()
@ 2018-08-07  9:16 Fam Zheng
  2018-08-07  9:16 ` [Qemu-devel] [PATCH v2 1/2] aio-posix: Don't count ctx->notifier as progress when polling Fam Zheng
  2018-08-07  9:16 ` [Qemu-devel] [PATCH v2 2/2] aio: Do aio_notify_accept only during blocking aio_poll Fam Zheng
  0 siblings, 2 replies; 5+ messages in thread
From: Fam Zheng @ 2018-08-07  9:16 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini, Fam Zheng, Stefan Hajnoczi, lersek, qemu-block

v2: Implement the fix following Paolo's idea.
    Testing is still in progress.

Calling aio_notify_accept(iothread->ctx) from main loop when it does
aio_poll(iothread->ctx, false) is a bug because it may steal the event needed
by aio_poll(iothread->ctx, true) in the IOThread. This can cause IOThread
hanging.

Fam Zheng (2):
  aio-posix: Don't count ctx->notifier as progress when polling
  aio: Do aio_notify_accept only during blocking aio_poll

 util/aio-posix.c | 7 ++++---
 util/aio-win32.c | 3 ++-
 2 files changed, 6 insertions(+), 4 deletions(-)

-- 
2.17.1

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

end of thread, other threads:[~2018-08-07 14:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-07  9:16 [Qemu-devel] [PATCH v2 0/2] Fix aio_notify_accept() Fam Zheng
2018-08-07  9:16 ` [Qemu-devel] [PATCH v2 1/2] aio-posix: Don't count ctx->notifier as progress when polling Fam Zheng
2018-08-07  9:16 ` [Qemu-devel] [PATCH v2 2/2] aio: Do aio_notify_accept only during blocking aio_poll Fam Zheng
2018-08-07 10:15   ` Paolo Bonzini
2018-08-07 14:11     ` Fam Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).