[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>
signature.asc
Description: PGP signature
- Re: [PATCH 5/5] aio-posix: make AioHandler dispatch O(1) with epoll, (continued)
- Re: [PATCH 5/5] aio-posix: make AioHandler dispatch O(1) with epoll, Sergio Lopez, 2020/02/19
- Re: [PATCH 5/5] aio-posix: make AioHandler dispatch O(1) with epoll, Paolo Bonzini, 2020/02/19
- Re: [PATCH 5/5] aio-posix: make AioHandler dispatch O(1) with epoll, Stefan Hajnoczi, 2020/02/21
- Re: [PATCH 5/5] aio-posix: make AioHandler dispatch O(1) with epoll, Paolo Bonzini, 2020/02/21
- Re: [PATCH 5/5] aio-posix: make AioHandler dispatch O(1) with epoll, Stefan Hajnoczi, 2020/02/21
- Re: [PATCH 5/5] aio-posix: make AioHandler dispatch O(1) with epoll, Stefan Hajnoczi, 2020/02/21
- Re: [PATCH 5/5] aio-posix: make AioHandler dispatch O(1) with epoll, Paolo Bonzini, 2020/02/21
- Re: [PATCH 5/5] aio-posix: make AioHandler dispatch O(1) with epoll, Stefan Hajnoczi, 2020/02/21
- Re: [PATCH 5/5] aio-posix: make AioHandler dispatch O(1) with epoll, Paolo Bonzini, 2020/02/21
[PATCH 4/5] aio-posix: make AioHandler deletion O(1), Stefan Hajnoczi, 2020/02/14
- Re: [PATCH 4/5] aio-posix: make AioHandler deletion O(1),
Sergio Lopez <=
Re: [PATCH 0/5] aio-posix: towards an O(1) event loop, Stefan Hajnoczi, 2020/02/21