aio-posix: Unregister fd from ctx epoll when removing fd_handler.
authorRemy Noel <remy.noel@blade-group.com>
Thu, 20 Dec 2018 15:20:29 +0000 (16:20 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 14 Jan 2019 14:09:41 +0000 (14:09 +0000)
commit8821b34a7362d69b325c045dad4557782775683b
tree628379b8ce8555f07907862dbfb5a345eacf9b00
parent7260438b7056469610ee166f7abe9ff8a26b8b16
aio-posix: Unregister fd from ctx epoll when removing fd_handler.

Cleaning the events will cause aio_epoll_update to unregister the fd.
Otherwise, the fd is kept registered until it is destroyed.

Signed-off-by: Remy Noel <remy.noel@blade-group.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20181220152030.28035-2-remy.noel@blade-group.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
util/aio-posix.c