aio: rename aio_context_in_iothread() to in_aio_context_home_thread()
authorStefan Hajnoczi <stefanha@redhat.com>
Fri, 16 Feb 2018 16:50:11 +0000 (16:50 +0000)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Mar 2018 17:39:07 +0000 (18:39 +0100)
commitd2b63ba8dd20c1091b3f1033e6a95ef95b18149d
tree8de7843b028a0c1072ee71e1703cd817936ac643
parentbe820971ff6f88c156233eec8a50cdf8c70c0938
aio: rename aio_context_in_iothread() to in_aio_context_home_thread()

The name aio_context_in_iothread() is misleading because it also returns
true when called on the main AioContext from the main loop thread, which
is not an IOThread.

This patch renames it to in_aio_context_home_thread() and expands the
doc comment to make the semantics clearer.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
include/block/aio.h
include/block/block.h