[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 2/5] introduce BDRV_POLL_WHILE_UNLOCKED
From: |
Eric Blake |
Subject: |
Re: [RFC PATCH 2/5] introduce BDRV_POLL_WHILE_UNLOCKED |
Date: |
Wed, 9 Mar 2022 07:49:43 -0600 |
User-agent: |
NeoMutt/20211029-410-d8ee8c |
On Tue, Mar 01, 2022 at 09:21:10AM -0500, Emanuele Giuseppe Esposito wrote:
> Same as BDRV_POLL_WHILE, but uses AIO_WAIT_WHILE_UNLOCKED.
> See doc comment for more info.
This sentence implies there is a doc comment...
>
> Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
> ---
> include/block/block.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/include/block/block.h b/include/block/block.h
> index e1713ee306..5a7a850c16 100644
> --- a/include/block/block.h
> +++ b/include/block/block.h
> @@ -512,6 +512,11 @@ void bdrv_drain_all(void);
> AIO_WAIT_WHILE(bdrv_get_aio_context(bs_), \
> cond); })
>
> +#define BDRV_POLL_WHILE_UNLOCKED(bs, cond) ({ \
> + BlockDriverState *bs_ = (bs); \
> + AIO_WAIT_WHILE_UNLOCKED(bdrv_get_aio_context(bs_), \
> + cond); })
> +
but none is added here. I'm presuming that the comment is already in
the file (not shown in the limited context view here), but it may be
worth tweaking the commit message to mention that.
> int generated_co_wrapper bdrv_pdiscard(BdrvChild *child, int64_t offset,
> int64_t bytes);
> int bdrv_co_pdiscard(BdrvChild *child, int64_t offset, int64_t bytes);
> --
> 2.31.1
>
>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
- [RFC PATCH 0/5] Removal of AioContext lock, bs->parents and ->children: proof of concept, Emanuele Giuseppe Esposito, 2022/03/01
- [RFC PATCH 2/5] introduce BDRV_POLL_WHILE_UNLOCKED, Emanuele Giuseppe Esposito, 2022/03/01
- [RFC PATCH 4/5] child_job_drained_poll: override polling condition only when in home thread, Emanuele Giuseppe Esposito, 2022/03/01
- [RFC PATCH 1/5] aio-wait.h: introduce AIO_WAIT_WHILE_UNLOCKED, Emanuele Giuseppe Esposito, 2022/03/01
- [RFC PATCH 3/5] block/io.c: introduce bdrv_subtree_drained_{begin/end}_unlocked, Emanuele Giuseppe Esposito, 2022/03/01
- [RFC PATCH 5/5] test-bdrv-drain: ensure draining from main loop stops iothreads, Emanuele Giuseppe Esposito, 2022/03/01
- Re: [RFC PATCH 0/5] Removal of AioContext lock, bs->parents and ->children: proof of concept, Emanuele Giuseppe Esposito, 2022/03/01
- Re: [RFC PATCH 0/5] Removal of AioContext lock, bs->parents and ->children: proof of concept, Stefan Hajnoczi, 2022/03/02