[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 07/26] block: add missing coroutine_fn annotations
From: |
Eric Blake |
Subject: |
Re: [PATCH v2 07/26] block: add missing coroutine_fn annotations |
Date: |
Fri, 13 May 2022 16:26:13 -0500 |
User-agent: |
NeoMutt/20220429-54-2d64b2 |
On Mon, May 09, 2022 at 12:30:00PM +0200, Paolo Bonzini wrote:
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Resuming more of my review...
> ---
> block/block-backend.c | 18 +++++++++---------
> block/io.c | 24 ++++++++++++------------
> 2 files changed, 21 insertions(+), 21 deletions(-)
>
> diff --git a/block/block-backend.c b/block/block-backend.c
> index fedf2eca83..52009b8949 100644
> --- a/block/block-backend.c
> +++ b/block/block-backend.c
> @@ -1413,8 +1413,8 @@ typedef struct BlkRwCo {
> BdrvRequestFlags flags;
> } BlkRwCo;
>
> -int blk_pwrite_zeroes(BlockBackend *blk, int64_t offset,
> - int64_t bytes, BdrvRequestFlags flags)
> +int coroutine_fn blk_pwrite_zeroes(BlockBackend *blk, int64_t offset,
> + int64_t bytes, BdrvRequestFlags flags)
Tracking down all callers of blk_pwrite_zeroes is not as trivial as in
the previous patches. But the very first one I checked:
block.c: create_file_fallback_zero_first_sector()
is neither marked coroutine_fn, nor does it have the "if
(qemu_in_coroutine())" guard. And block.c is not touched in this
patch series, per the diffstat in 0/26. Am I missing something?
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
- Re: [PATCH v2 02/26] qcow2: remove incorrect coroutine_fn annotations, (continued)
- [PATCH v2 01/26] block: remove incorrect coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- [PATCH v2 05/26] blkdebug: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- [PATCH v2 06/26] blkverify: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- [PATCH v2 04/26] coroutine: remove incorrect coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- [PATCH v2 07/26] block: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
- Re: [PATCH v2 07/26] block: add missing coroutine_fn annotations,
Eric Blake <=
[PATCH v2 08/26] file-posix: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
[PATCH v2 10/26] nbd: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
[PATCH v2 11/26] nfs: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09
[PATCH v2 09/26] iscsi: add missing coroutine_fn annotations, Paolo Bonzini, 2022/05/09