aboutsummaryrefslogtreecommitdiff
path: root/linux-user/exit.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2019-05-06 19:17:58 +0200
committerKevin Wolf <kwolf@redhat.com>2019-05-20 17:08:56 +0200
commit0d83708a1d2effc5d905cd1d61d0ef47d310ad88 (patch)
tree4e3fed82df9f6faef3299634475dede40c6f40ea /linux-user/exit.c
parenta3a683c33d38fb29c7a78903e88dda12b84cc88d (diff)
block: Move recursion to bdrv_set_aio_context()
Instead of having two recursions, in bdrv_attach_aio_context() and in bdrv_detach_aio_context(), just having one recursion is enough. Said functions are only about a single node now. It is important that the recursion doesn't happen between detaching and attaching a context to the current node because the nested call will drain the node, and draining with a NULL context would segfault. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'linux-user/exit.c')
0 files changed, 0 insertions, 0 deletions