qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Max Reitz <mreitz@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>,
	qemu-block@nongnu.org
Cc: kwolf@redhat.com, qemu-devel@nongnu.org, armbru@redhat.com,
	stefanha@redhat.com, den@openvz.org
Subject: Re: [Qemu-devel] [PATCH v3 1/4] block: introduce aio task pool
Date: Thu, 15 Aug 2019 15:41:27 +0200	[thread overview]
Message-ID: <ffb68839-2d43-210f-4041-3482e72501a7@redhat.com> (raw)
In-Reply-To: <20190815121042.121309-2-vsementsov@virtuozzo.com>


[-- Attachment #1.1: Type: text/plain, Size: 1165 bytes --]

On 15.08.19 14:10, Vladimir Sementsov-Ogievskiy wrote:
> Common interface for aio task loops. To be used for improving
> performance of synchronous io loops in qcow2, block-stream,
> copy-on-read, and may be other places.
> 
> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
> ---
>  include/block/aio_task.h |  54 +++++++++++++++++
>  block/aio_task.c         | 124 +++++++++++++++++++++++++++++++++++++++
>  block/Makefile.objs      |   2 +
>  3 files changed, 180 insertions(+)
>  create mode 100644 include/block/aio_task.h
>  create mode 100644 block/aio_task.c
> 
> diff --git a/include/block/aio_task.h b/include/block/aio_task.h
> new file mode 100644
> index 0000000000..58b4d99e59
> --- /dev/null
> +++ b/include/block/aio_task.h

[...]

> +AioTaskPool *aio_task_pool_new(int max_busy_tasks);

Because aio_task_pool_wait_one() asserts that it runs in the same
coroutine as aio_task_pool_new(), this should be a coroutine_fn as well.
O:-)

But I don’t want to be responsible for breaking your “1” key (assuming
you have the exclamation mark there):

Reviewed-by: Max Reitz <mreitz@redhat.com>


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2019-08-15 13:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-15 12:10 [Qemu-devel] [PATCH v3 0/4] qcow2: async handling of fragmented io Vladimir Sementsov-Ogievskiy
2019-08-15 12:10 ` [Qemu-devel] [PATCH v3 1/4] block: introduce aio task pool Vladimir Sementsov-Ogievskiy
2019-08-15 13:41   ` Max Reitz [this message]
2019-08-15 12:10 ` [Qemu-devel] [PATCH v3 2/4] block/qcow2: refactor qcow2_co_preadv_part Vladimir Sementsov-Ogievskiy
2019-08-15 13:56   ` Max Reitz
2019-08-15 12:10 ` [Qemu-devel] [PATCH v3 3/4] block/qcow2: refactor qcow2_co_pwritev_part Vladimir Sementsov-Ogievskiy
2019-08-15 14:02   ` Max Reitz
2019-08-15 12:10 ` [Qemu-devel] [PATCH v3 4/4] block/qcow2: introduce parallel subrequest handling in read and write Vladimir Sementsov-Ogievskiy
2019-08-15 14:07   ` Max Reitz
2019-08-15 13:21 ` [Qemu-devel] [PATCH v3 0/4] qcow2: async handling of fragmented io Max Reitz
2019-08-15 15:35   ` Vladimir Sementsov-Ogievskiy
2019-08-15 14:09 ` Max Reitz
2019-08-15 15:39   ` Vladimir Sementsov-Ogievskiy
2019-08-16 16:42     ` Vladimir Sementsov-Ogievskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ffb68839-2d43-210f-4041-3482e72501a7@redhat.com \
    --to=mreitz@redhat.com \
    --cc=armbru@redhat.com \
    --cc=den@openvz.org \
    --cc=kwolf@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=vsementsov@virtuozzo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).