mbox series

[v2,0/2] fdmon-poll: reset npfd when upgrading to fdmon-epoll

Message ID 20200915120339.702938-1-stefanha@redhat.com
Headers show
Series fdmon-poll: reset npfd when upgrading to fdmon-epoll | expand

Message

Stefan Hajnoczi Sept. 15, 2020, 12:03 p.m. UTC
v2:
 * Rebased onto qemu.git/master for meson

Fix an assertion failure when aio_poll() is called in a aio_disable_external()
region. The failure happens when fdmon-poll is first upgraded to fdmon-epoll
and then downgraded again due to aio_disable_external().

Stefan Hajnoczi (2):
  fdmon-poll: reset npfd when upgrading to fdmon-epoll
  tests: add test-fdmon-epoll

 MAINTAINERS              |  1 +
 tests/test-fdmon-epoll.c | 73 ++++++++++++++++++++++++++++++++++++++++
 util/fdmon-poll.c        |  1 +
 tests/meson.build        |  3 ++
 4 files changed, 78 insertions(+)
 create mode 100644 tests/test-fdmon-epoll.c

Comments

Stefan Hajnoczi Sept. 23, 2020, 12:52 p.m. UTC | #1
On Tue, Sep 15, 2020 at 01:03:37PM +0100, Stefan Hajnoczi wrote:
> v2:

>  * Rebased onto qemu.git/master for meson

> 

> Fix an assertion failure when aio_poll() is called in a aio_disable_external()

> region. The failure happens when fdmon-poll is first upgraded to fdmon-epoll

> and then downgraded again due to aio_disable_external().

> 

> Stefan Hajnoczi (2):

>   fdmon-poll: reset npfd when upgrading to fdmon-epoll

>   tests: add test-fdmon-epoll

> 

>  MAINTAINERS              |  1 +

>  tests/test-fdmon-epoll.c | 73 ++++++++++++++++++++++++++++++++++++++++

>  util/fdmon-poll.c        |  1 +

>  tests/meson.build        |  3 ++

>  4 files changed, 78 insertions(+)

>  create mode 100644 tests/test-fdmon-epoll.c

> 

> -- 

> 2.26.2

> 


Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan