qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 4/5] aio-posix: make AioHandler deletion O(1)


From: Sergio Lopez
Subject: Re: [PATCH 4/5] aio-posix: make AioHandler deletion O(1)
Date: Wed, 19 Feb 2020 11:41:45 +0100

On Fri, Feb 14, 2020 at 05:17:11PM +0000, Stefan Hajnoczi wrote:
> It is not necessary to scan all AioHandlers for deletion.  Keep a list
> of deleted handlers instead of scanning the full list of all handlers.
> 
> The AioHandler->deleted field can be dropped.  Let's check if the
> handler has been inserted into the deleted list instead.  Add a new
> QLIST_IS_INSERTED() API for this check.
> 
> Signed-off-by: Stefan Hajnoczi <address@hidden>
> ---
>  include/block/aio.h  |  6 ++++-
>  include/qemu/queue.h |  3 +++
>  util/aio-posix.c     | 53 +++++++++++++++++++++++++++++---------------
>  3 files changed, 43 insertions(+), 19 deletions(-)

Reviewed-by: Sergio Lopez <address@hidden>

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]