OSDN Git Service

coroutine: simplify co_aio_sleep_ns() prototype
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 9 Nov 2017 10:26:52 +0000 (10:26 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 19 Dec 2017 09:25:27 +0000 (09:25 +0000)
commit78f1d3d6a6904459b0b6cfd735278e4e2b7b68c5
treeea95b1b42bc1b9ccd6b4ae549fd478c812ffc6da
parenteaefea537b476cb853e2edbdc68e969ec777e4bb
coroutine: simplify co_aio_sleep_ns() prototype

The AioContext pointer argument to co_aio_sleep_ns() is only used for
the sleep timer.  It does not affect where the caller coroutine is
resumed.

Due to changes to coroutine and AIO APIs it is now possible to drop the
AioContext pointer argument.  This is safe to do since no caller has
specific requirements for which AioContext the timer must run in.

This patch drops the AioContext pointer argument and renames the
function to simplify the API.

Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Reported-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20171109102652.6360-1-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/null.c
block/sheepdog.c
include/qemu/coroutine.h
util/qemu-coroutine-sleep.c