[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH] coroutine: simplify co_aio_sleep_ns() prototype
From: |
Eric Blake |
Subject: |
Re: [Qemu-block] [PATCH] coroutine: simplify co_aio_sleep_ns() prototype |
Date: |
Thu, 9 Nov 2017 08:49:41 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
On 11/09/2017 04:26 AM, Stefan Hajnoczi wrote:
> 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.
And it fixes a stale comment ;)
>
> Reported-by: Paolo Bonzini <address@hidden>
> Reported-by: Eric Blake <address@hidden>
> Signed-off-by: Stefan Hajnoczi <address@hidden>
> ---
> include/qemu/coroutine.h | 6 +-----
> block/null.c | 3 +--
> block/sheepdog.c | 3 +--
> blockjob.c | 2 +-
> util/qemu-coroutine-sleep.c | 4 ++--
> 5 files changed, 6 insertions(+), 12 deletions(-)
>
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature