From: Kevin Wolf <kwolf@redhat.com>
To: Bruce Rogers <brogers@novell.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Remove un-needed code
Date: Mon, 12 Apr 2010 10:53:48 +0200 [thread overview]
Message-ID: <4BC2DF9C.4040504@redhat.com> (raw)
In-Reply-To: <4BBF5BE50200004800092A6A@sinclair.provo.novell.com>
Am 10.04.2010 00:55, schrieb Bruce Rogers:
> The set_geometry_hint call below is not needed - it's just setting what was just read.
>
> Signed-Off-By: Bruce Rogers <brogers@novell.com
It needs to be "Signed-off-by" with lower-case o and b to be recognized
by git, and the right angle bracket is missing.
>
> diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c
> index 9915840..bc4fa77 100644
> --- a/hw/virtio-blk.c
> +++ b/hw/virtio-blk.c
> @@ -494,7 +494,6 @@ VirtIODevice *virtio_blk_init(DeviceState *dev, BlockConf *c
> onf)
Patch is incorrectly wrapped here.
> s->rq = NULL;
> s->sector_mask = (s->conf->logical_block_size / 512) - 1;
> bdrv_guess_geometry(s->bs, &cylinders, &heads, &secs);
> - bdrv_set_geometry_hint(s->bs, cylinders, heads, secs);
>
> s->vq = virtio_add_queue(&s->vdev, 128, virtio_blk_handle_output);
bdrv_guess_geometry is not a simple getter function, but it already
calls bdrv_set_geometry_hint itself, so I think the logic is correct.
Kevin
next prev parent reply other threads:[~2010-04-12 8:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-09 22:55 [Qemu-devel] [PATCH] Remove un-needed code Bruce Rogers
2010-04-12 8:53 ` Kevin Wolf [this message]
2010-04-12 13:02 ` Bruce Rogers
-- strict thread matches above, loose matches on Subject: below --
2010-04-12 12:56 Bruce Rogers
2010-04-12 13:08 ` Kevin Wolf
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=4BC2DF9C.4040504@redhat.com \
--to=kwolf@redhat.com \
--cc=brogers@novell.com \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.