qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Max Reitz <mreitz@redhat.com>
To: Peter Lieven <pl@kamp.de>, qemu-devel@nongnu.org
Cc: kwolf@redhat.com, carnold@suse.com, jcody@redhat.com,
	famz@redhat.com, stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2 5/5] block/vpc: remove disabled code from get_sector_offset
Date: Tue, 03 Mar 2015 10:07:29 -0500	[thread overview]
Message-ID: <54F5CE31.4050602@redhat.com> (raw)
In-Reply-To: <1425379316-19639-6-git-send-email-pl@kamp.de>

On 2015-03-03 at 05:41, Peter Lieven wrote:
> The code to check the bitmap for the allocation status of each sector
> has been "disabled by reason" ever since the vpc driver existed.
>
> The reason might be that we might end up reading sector by sector
> in vpc_read if we really used it. This would be a performance desaster.
>
> The current code would furthermore not work if the disabled parts get
> reactivated since vpc_read and vpc_write only use get_sector_offset to
> check the allocation status of the first sector of a read/write operation.
> This might lead to sectors incorrectly treated as zero in vpc_read and
> to sectors getting allocated twice in vpc_write.
>
> Signed-off-by: Peter Lieven <pl@kamp.de>
> ---
>   block/vpc.c | 32 --------------------------------
>   1 file changed, 32 deletions(-)

Awww, that code nearly had its ten-year anniversary. Too bad it won't 
live to see it (I hope...).

Reviewed-by: Max Reitz <mreitz@redhat.com>

  reply	other threads:[~2015-03-03 15:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-03 10:41 [Qemu-devel] [PATCH v2 0/5] block/vpc optimizations Peter Lieven
2015-03-03 10:41 ` [Qemu-devel] [PATCH v2 1/5] block/vpc: optimize vpc_co_get_block_status Peter Lieven
2015-03-03 10:41 ` [Qemu-devel] [PATCH v2 2/5] vpc: Ignore geometry for large images Peter Lieven
2015-03-03 14:59   ` Max Reitz
2015-03-03 10:41 ` [Qemu-devel] [PATCH v2 3/5] block/vpc: make calculate_geometry spec conform Peter Lieven
2015-03-03 15:05   ` Max Reitz
2015-03-03 10:41 ` [Qemu-devel] [PATCH v2 4/5] block/vpc: rename footer->size -> footer->current_size Peter Lieven
2015-03-03 10:41 ` [Qemu-devel] [PATCH v2 5/5] block/vpc: remove disabled code from get_sector_offset Peter Lieven
2015-03-03 15:07   ` Max Reitz [this message]
2015-03-03 21:03 ` [Qemu-devel] [PATCH v2 0/5] block/vpc optimizations Max Reitz
2015-03-17 21:02   ` Max Reitz

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=54F5CE31.4050602@redhat.com \
    --to=mreitz@redhat.com \
    --cc=carnold@suse.com \
    --cc=famz@redhat.com \
    --cc=jcody@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=pl@kamp.de \
    --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).