Skip to content
Snippets Groups Projects
Commit fef16601 authored by Remy Noel's avatar Remy Noel Committed by Stefan Hajnoczi
Browse files

aio-posix: Fix concurrent aio_poll/set_fd_handler.


It is possible for an io_poll callback to be concurrently executed along
with an aio_set_fd_handlers. This can cause all sorts of problems, like
a NULL callback or a bad opaque pointer.

This changes set_fd_handlers so that it no longer modify existing handlers
entries and instead, always insert those after having proper initialisation.

Tested-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: default avatarRemy Noel <remy.noel@blade-group.com>
Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Message-id: 20181220152030.28035-3-remy.noel@blade-group.com
Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
parent 8821b34a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment