qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Manos Pitsidianakis <el13635@mail.ntua.gr>
To: qemu-devel <qemu-devel@nongnu.org>
Cc: qemu-block <qemu-block@nongnu.org>,
	Alberto Garcia <berto@igalia.com>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	Kevin Wolf <kwolf@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v4 5/7] block: add throttle block filter driver
Date: Fri, 11 Aug 2017 13:52:07 +0300	[thread overview]
Message-ID: <20170811105207.kasyjsigumk2jucu@postretch> (raw)
In-Reply-To: <20170809100734.17540-6-el13635@mail.ntua.gr>

[-- Attachment #1: Type: text/plain, Size: 1114 bytes --]

On Wed, Aug 09, 2017 at 01:07:32PM +0300, Manos Pitsidianakis wrote:
>+static int coroutine_fn throttle_co_preadv(BlockDriverState *bs,
>+                                           uint64_t offset, uint64_t bytes,
>+                                           QEMUIOVector *qiov, int flags)
>+{
>+
>+    ThrottleGroupMember *tgm = bs->opaque;
>+    throttle_group_co_io_limits_intercept(tgm, bytes, false);
>+
>+    return bdrv_co_preadv(bs->file, offset, bytes, qiov, flags);
>+}
>+
>+static int coroutine_fn throttle_co_pwritev(BlockDriverState *bs,
>+                                            uint64_t offset, uint64_t bytes,
>+                                            QEMUIOVector *qiov, int flags)
>+{
>+    ThrottleGroupMember *tgm = bs->opaque;
>+    throttle_group_co_io_limits_intercept(tgm, bytes, true);
>+
>+    return bdrv_co_preadv(bs->file, offset, bytes, qiov, flags);
--------------------^
Tried some write throttling testing, noticed this. If anyone wants to
test this iteration, change this to bdrv_co_pwritev(), I will correct
this in the next version. (let's pretend this never happened!)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2017-08-11 10:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-09 10:07 [Qemu-devel] [PATCH v4 0/7] add throttle block driver filter Manos Pitsidianakis
2017-08-09 10:07 ` [Qemu-devel] [PATCH v4 1/7] block: move ThrottleGroup membership to ThrottleGroupMember Manos Pitsidianakis
2017-08-09 10:07 ` [Qemu-devel] [PATCH v4 2/7] block: add aio_context field in ThrottleGroupMember Manos Pitsidianakis
2017-08-09 10:07 ` [Qemu-devel] [PATCH v4 3/7] block: tidy ThrottleGroupMember initializations Manos Pitsidianakis
2017-08-09 10:07 ` [Qemu-devel] [PATCH v4 4/7] block: convert ThrottleGroup to object with QOM Manos Pitsidianakis
2017-08-10 14:44   ` Alberto Garcia
2017-08-09 10:07 ` [Qemu-devel] [PATCH v4 5/7] block: add throttle block filter driver Manos Pitsidianakis
2017-08-10 13:54   ` Alberto Garcia
2017-08-10 14:23     ` Manos Pitsidianakis
2017-08-11 10:52   ` Manos Pitsidianakis [this message]
2017-08-09 10:07 ` [Qemu-devel] [PATCH v4 6/7] block: add BlockDevOptionsThrottle to QAPI Manos Pitsidianakis
2017-08-09 10:07 ` [Qemu-devel] [PATCH v4 7/7] block: add throttle block filter driver interface tests Manos Pitsidianakis

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=20170811105207.kasyjsigumk2jucu@postretch \
    --to=el13635@mail.ntua.gr \
    --cc=berto@igalia.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.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).