[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] util/async: make bh_aio_poll() O(1)
From: |
Paolo Bonzini |
Subject: |
Re: [PATCH v2] util/async: make bh_aio_poll() O(1) |
Date: |
Thu, 20 Feb 2020 11:43:53 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 |
On 19/02/20 18:53, Stefan Hajnoczi wrote:
> +}
> +
> +/* Only called from aio_bh_poll() and aio_ctx_finalize() */
> +static QEMUBH *aio_bh_dequeue(BHList *head, unsigned *flags)
> +{
> + QEMUBH *bh = QSLIST_FIRST(head);
I forgot, this should also become QSLIST_FIRST_RCU.
Paolo