[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 01/10] AioContext: take bottom halves into accou
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 01/10] AioContext: take bottom halves into account when computing aio_poll timeout |
Date: |
Fri, 1 Aug 2014 15:34:47 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Wed, Jul 09, 2014 at 11:53:01AM +0200, Paolo Bonzini wrote:
> diff --git a/async.c b/async.c
> index 34af0b2..ac40eab 100644
> --- a/async.c
> +++ b/async.c
> @@ -152,39 +152,43 @@ void qemu_bh_delete(QEMUBH *bh)
> bh->deleted = 1;
> }
>
> -static gboolean
> -aio_ctx_prepare(GSource *source, gint *timeout)
> +int
> +aio_compute_timeout(AioContext *ctx)
The return value is now nanoseconds so a 32-bit int doesn't offer much
range (only 2 seconds for a signed int).
Any reason to use int instead of int64_t as used by the timer API?
pgpj2fiEWC1HL.pgp
Description: PGP signature
- Re: [Qemu-devel] [PATCH 01/10] AioContext: take bottom halves into account when computing aio_poll timeout,
Stefan Hajnoczi <=