[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/6] block/linux-aio: convert to blk_io_plug_call() API
From: |
Eric Blake |
Subject: |
Re: [PATCH 5/6] block/linux-aio: convert to blk_io_plug_call() API |
Date: |
Thu, 18 May 2023 19:28:52 -0500 |
User-agent: |
NeoMutt/20230517 |
On Wed, May 17, 2023 at 06:10:21PM -0400, Stefan Hajnoczi wrote:
> Stop using the .bdrv_co_io_plug() API because it is not multi-queue
> block layer friendly. Use the new blk_io_plug_call() API to batch I/O
> submission instead.
>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
> include/block/raw-aio.h | 7 -------
> block/file-posix.c | 28 ----------------------------
> block/linux-aio.c | 41 +++++++++++------------------------------
> 3 files changed, 11 insertions(+), 65 deletions(-)
>
Nice to see that not only is it friendlier to multi-queue, it's also
fewer lines of code.
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
- Re: [PATCH 2/6] block/nvme: convert to blk_io_plug_call() API, (continued)