qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>,
	qemu-devel@nongnu.org, qemu-block@nongnu.org
Cc: kwolf@redhat.com, fam@euphon.net, mreitz@redhat.com,
	stefanha@redhat.com, den@openvz.org, jsnow@redhat.com
Subject: Re: [Qemu-devel] [PATCH v3 3/3] nbd: improve CMD_CACHE: use BDRV_REQ_PREFETCH
Date: Mon, 29 Jul 2019 16:24:39 -0500	[thread overview]
Message-ID: <cf6ad0f9-1e4c-9f8a-ab0c-512beaeba53b@redhat.com> (raw)
In-Reply-To: <20190725100550.33801-4-vsementsov@virtuozzo.com>


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

On 7/25/19 5:05 AM, Vladimir Sementsov-Ogievskiy wrote:
> This helps to avoid extra io, allocations and memory copying.
> We assume here that CMD_CACHE is always used with copy-on-read, as
> otherwise it's a noop.
> 
> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
> ---
>  nbd/server.c | 43 +++++++++++++++++++++++++++++++++++--------
>  1 file changed, 35 insertions(+), 8 deletions(-)

libnbd is able to test NBD_CMD_CACHE requests, and I've confirmed that
behavior looks sane under requests issued that way.  I'm wondering if
qemu-io should also be able to drive this mode of operation, so that we
can give it iotest coverage without depending on libnbd.

Reviewed-by: Eric Blake <eblake@redhat.com>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


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

  reply	other threads:[~2019-07-29 21:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-25 10:05 [Qemu-devel] [PATCH v3 for-4.2 0/3] block: BDRV_REQ_PREFETCH Vladimir Sementsov-Ogievskiy
2019-07-25 10:05 ` [Qemu-devel] [PATCH v3 1/3] block: implement BDRV_REQ_PREFETCH Vladimir Sementsov-Ogievskiy
2019-07-29 21:13   ` Eric Blake
2019-07-25 10:05 ` [Qemu-devel] [PATCH v3 2/3] block/stream: use BDRV_REQ_PREFETCH Vladimir Sementsov-Ogievskiy
2019-07-29 21:19   ` Eric Blake
2019-07-25 10:05 ` [Qemu-devel] [PATCH v3 3/3] nbd: improve CMD_CACHE: " Vladimir Sementsov-Ogievskiy
2019-07-29 21:24   ` Eric Blake [this message]
2019-07-29 15:00 ` [Qemu-devel] [Qemu-block] [PATCH v3 for-4.2 0/3] block: BDRV_REQ_PREFETCH Stefan Hajnoczi
2019-07-29 15:29   ` Vladimir Sementsov-Ogievskiy
2019-07-29 15:38   ` Eric Blake

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=cf6ad0f9-1e4c-9f8a-ab0c-512beaeba53b@redhat.com \
    --to=eblake@redhat.com \
    --cc=den@openvz.org \
    --cc=fam@euphon.net \
    --cc=jsnow@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@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).