[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH v3 2/2] block: move I/O request processing to bl
From: |
Eric Blake |
Subject: |
Re: [Qemu-block] [PATCH v3 2/2] block: move I/O request processing to block/io.c |
Date: |
Mon, 27 Apr 2015 10:28:05 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
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
signature.asc
Description: OpenPGP digital signature