qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: qemu-devel@nongnu.org
Cc: kwolf@redhat.com, stefanha@gmail.com
Subject: [Qemu-devel] [PATCH 0/4] block-queue: Delay and batch metadata write
Date: Mon, 13 Dec 2010 17:29:03 +0100	[thread overview]
Message-ID: <1292257747-10665-1-git-send-email-kwolf@redhat.com> (raw)

Differences to RFC v3 include proper conversion of qcow2, addressing Stefan's
comments and fixing some error cases in which two write requests to the same
location might conflict.

Also worth noting is that bdrv_aio_pwrite is dropped. It was unsafe with
respect to multiple concurrent requests on the same sector and it's impossible
to safely emulate byte-wise access with bdrv_aio_readv/writev without
introducing yet another queue. Instead we fall back to synchronous bdrv_pwrite
now with unaligned requests in block-queue (they are rare).

Kevin Wolf (4):
  Make vm_stop available for block layer
  Add block-queue
  Test cases for block-queue
  qcow2: Use block-queue

 Makefile               |    1 +
 Makefile.objs          |    2 +-
 block-queue.c          |  875 ++++++++++++++++++++++++++++++++++++++++++++++++
 block-queue.h          |   61 ++++
 block/qcow2-cluster.c  |  139 +++++----
 block/qcow2-refcount.c |  217 +++++++-----
 block/qcow2-snapshot.c |  106 +++++--
 block/qcow2.c          |  144 +++++++-
 block/qcow2.h          |   33 ++-
 check-block-queue.c    |  402 ++++++++++++++++++++++
 cpus.c                 |    8 +-
 qemu-common.h          |    3 +
 qemu-tool.c            |    5 +
 sysemu.h               |    1 -
 14 files changed, 1793 insertions(+), 204 deletions(-)
 create mode 100644 block-queue.c
 create mode 100644 block-queue.h
 create mode 100644 check-block-queue.c

-- 
1.7.2.3

             reply	other threads:[~2010-12-13 16:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-13 16:29 Kevin Wolf [this message]
2010-12-13 16:29 ` [Qemu-devel] [PATCH 1/4] Make vm_stop available for block layer Kevin Wolf
2010-12-13 16:29 ` [Qemu-devel] [PATCH 2/4] Add block-queue Kevin Wolf
2010-12-13 16:29 ` [Qemu-devel] [PATCH 3/4] Test cases for block-queue Kevin Wolf
2010-12-13 16:29 ` [Qemu-devel] [PATCH 4/4] qcow2: Use block-queue Kevin Wolf
2010-12-16 17:58   ` [Qemu-devel] " Stefan Hajnoczi

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=1292257747-10665-1-git-send-email-kwolf@redhat.com \
    --to=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.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).