qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Stefan Hajnoczi <stefanha@redhat.com>, qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v3 2/2] block: move I/O request processing to block/io.c
Date: Mon, 27 Apr 2015 10:28:05 -0600	[thread overview]
Message-ID: <553E6395.2050705@redhat.com> (raw)
In-Reply-To: <1430149991-29850-3-git-send-email-stefanha@redhat.com>

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

On 04/27/2015 09:53 AM, Stefan Hajnoczi wrote:
> The block.c file has grown to over 6000 lines.  It is time to split this
> file so there are fewer conflicts and the code is easier to maintain.
> 
> Extract I/O request processing code:
>  * Read
>  * Write
>  * Zero writes and making the image empty
>  * Flush
>  * Discard
>  * ioctl
>  * Tracked requests and queuing
>  * Throttling and copy-on-read
>  * Block status and allocated functions
>  * Refreshing block limits
>  * Reading/writing vmstate
>  * qemu_blockalign() and friends
> 
> The patch simply moves code from block.c into block/io.c.
> 
> No code changes are made except adding the following block_int.h
> functions so they can be called across block.c and block/io.c:
> bdrv_set_dirty(), bdrv_reset_dirty().

Can you split this patch into two parts (one adding the new functions,
the next doing code motion) so as to make the code motion even easier to
review?  Of course, as this patch is botched (missing block/io.c),
you'll need to send v4 before I can review anyways.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


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

  reply	other threads:[~2015-04-27 16:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-27 15:53 [Qemu-devel] [PATCH v3 0/2] block: move I/O request processing to block/io.c Stefan Hajnoczi
2015-04-27 15:53 ` [Qemu-devel] [PATCH v3 1/2] block: replace bdrv_states iteration with bdrv_next() Stefan Hajnoczi
2015-04-27 16:09   ` [Qemu-devel] [Qemu-block] " Alberto Garcia
2015-04-27 15:53 ` [Qemu-devel] [PATCH v3 2/2] block: move I/O request processing to block/io.c Stefan Hajnoczi
2015-04-27 16:28   ` Eric Blake [this message]
2015-04-27 16:26 ` [Qemu-devel] [PATCH v3 0/2] " 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=553E6395.2050705@redhat.com \
    --to=eblake@redhat.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).