From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NsAC2-000529-Uw for qemu-devel@nongnu.org; Thu, 18 Mar 2010 03:30:59 -0400 Received: from [199.232.76.173] (port=58300 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NsAC0-00051i-Vj for qemu-devel@nongnu.org; Thu, 18 Mar 2010 03:30:57 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NsABz-00051o-Nw for qemu-devel@nongnu.org; Thu, 18 Mar 2010 03:30:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61717) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NsABz-00051a-13 for qemu-devel@nongnu.org; Thu, 18 Mar 2010 03:30:55 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2I7UquL000471 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 18 Mar 2010 03:30:52 -0400 Date: Thu, 18 Mar 2010 09:27:27 +0200 From: "Michael S. Tsirkin" Message-ID: <20100318072727.GC16973@redhat.com> References: <39ca5a0927c83df683c20f60bed98de2143b6b39.1268765204.git.quintela@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <39ca5a0927c83df683c20f60bed98de2143b6b39.1268765204.git.quintela@redhat.com> Subject: [Qemu-devel] Re: [PATCH 8/9] virtio-blk: change rq type to VirtIOBlockReq List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: qemu-devel@nongnu.org On Tue, Mar 16, 2010 at 07:51:24PM +0100, Juan Quintela wrote: > Signed-off-by: Juan Quintela Acked-by: Michael S. Tsirkin > --- > hw/virtio-blk.c | 8 +++++--- > 1 files changed, 5 insertions(+), 3 deletions(-) > > diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c > index 672a07b..c2ee27d 100644 > --- a/hw/virtio-blk.c > +++ b/hw/virtio-blk.c > @@ -19,17 +19,19 @@ > # include > #endif > > +typedef struct VirtIOBlockReq VirtIOBlockReq; > + > typedef struct VirtIOBlock > { > VirtIODevice vdev; > BlockDriverState *bs; > VirtQueue *vq; > - void *rq; > + VirtIOBlockReq *rq; > QEMUBH *bh; > BlockConf *conf; > } VirtIOBlock; > > -typedef struct VirtIOBlockReq > +struct VirtIOBlockReq > { > VirtIOBlock *dev; > VirtQueueElement elem; > @@ -38,7 +40,7 @@ typedef struct VirtIOBlockReq > struct virtio_scsi_inhdr *scsi; > QEMUIOVector qiov; > struct VirtIOBlockReq *next; > -} VirtIOBlockReq; > +}; > > static void virtio_blk_req_complete(VirtIOBlockReq *req, int status) > { > -- > 1.6.6.1 > >