[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/6] block/io_uring: convert to blk_io_plug_call() API
From: |
Eric Blake |
Subject: |
Re: [PATCH 4/6] block/io_uring: convert to blk_io_plug_call() API |
Date: |
Thu, 18 May 2023 19:18:42 -0500 |
User-agent: |
NeoMutt/20230517 |
On Wed, May 17, 2023 at 06:10:20PM -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 | 10 ---------
> block/io_uring.c | 45 ++++++++++++++++-------------------------
> block/trace-events | 5 ++---
> 4 files changed, 19 insertions(+), 48 deletions(-)
>
> @@ -337,7 +325,6 @@ void luring_io_unplug(void)
> * @type: type of request
> *
> * Fetches sqes from ring, adds to pending queue and preps them
> - *
> */
> static int luring_do_submit(int fd, LuringAIOCB *luringcb, LuringState *s,
> uint64_t offset, int type)
> @@ -370,14 +357,16 @@ static int luring_do_submit(int fd, LuringAIOCB
> *luringcb, LuringState *s,
Looks a bit like a stray hunk, but you are touching the function, so
it's okay.
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 1/6] block: add blk_io_plug_call() API, (continued)
- [PATCH 2/6] block/nvme: convert to blk_io_plug_call() API, Stefan Hajnoczi, 2023/05/17
- [PATCH 3/6] block/blkio: convert to blk_io_plug_call() API, Stefan Hajnoczi, 2023/05/17
- [PATCH 4/6] block/io_uring: convert to blk_io_plug_call() API, Stefan Hajnoczi, 2023/05/17
- Re: [PATCH 4/6] block/io_uring: convert to blk_io_plug_call() API,
Eric Blake <=
- [PATCH 5/6] block/linux-aio: convert to blk_io_plug_call() API, Stefan Hajnoczi, 2023/05/17
- [PATCH 6/6] block: remove bdrv_co_io_plug() API, Stefan Hajnoczi, 2023/05/17