Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1JHe-00038q-Ct for qemu-devel@nongnu.org; Mon, 12 Apr 2010 09:02:34 -0400 Received: from [140.186.70.92] (port=32847 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1JHc-00035M-Ud for qemu-devel@nongnu.org; Mon, 12 Apr 2010 09:02:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1JHW-0005Dq-8I for qemu-devel@nongnu.org; Mon, 12 Apr 2010 09:02:32 -0400 Received: from sinclair.provo.novell.com ([137.65.248.137]:31844) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1JHV-0005DN-Ur for qemu-devel@nongnu.org; Mon, 12 Apr 2010 09:02:26 -0400 Message-Id: <4BC2C57E0200004800092C51@sinclair.provo.novell.com> Date: Mon, 12 Apr 2010 07:02:22 -0600 From: "Bruce Rogers" Subject: Re: [Qemu-devel] [PATCH] Remove un-needed code References: <4BBF5BE50200004800092A6A@sinclair.provo.novell.com> <4BC2DF9C.4040504@redhat.com> In-Reply-To: <4BC2DF9C.4040504@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel@nongnu.org On 4/12/2010 at 2:53 AM, Kevin Wolf wrote: > Am 10.04.2010 00:55, schrieb Bruce Rogers: >> The set_geometry_hint call below is not needed - it's just setting what = was=20 > just read. >>=20 >> Signed-Off-By: Bruce Rogers =20 > 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. >=20 >>=20 >> 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=20 > *c >> onf) >=20 > Patch is incorrectly wrapped here. >=20 >> s->rq =3D NULL; >> s->sector_mask =3D (s->conf->logical_block_size / 512) - 1; >> bdrv_guess_geometry(s->bs, &cylinders, &heads, &secs); >> - bdrv_set_geometry_hint(s->bs, cylinders, heads, secs); >> =20 >> s->vq =3D virtio_add_queue(&s->vdev, 128, virtio_blk_handle_output)= ; >=20 > 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. >=20 > Kevin I've re-posted with these items fixed. Thanks. Bruce