Received: from eggs.gnu.org ([2001:4830:134:3::10]:34534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnNAN-00070m-1Y for qemu-devel@nongnu.org; Thu, 22 May 2014 03:11:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnNAG-0001cb-F3 for qemu-devel@nongnu.org; Thu, 22 May 2014 03:11:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:17474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnNAD-0001cE-KY for qemu-devel@nongnu.org; Thu, 22 May 2014 03:11:44 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4M7BfeI017250 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 22 May 2014 03:11:41 -0400 Date: Thu, 22 May 2014 15:11:50 +0800 From: Fam Zheng Message-ID: <20140522071150.GB2097@T430.nay.redhat.com> References: <1400740589-3655-1-git-send-email-famz@redhat.com> <1400740589-3655-2-git-send-email-famz@redhat.com> <537DA153.2080501@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <537DA153.2080501@redhat.com> Subject: Re: [Qemu-devel] [PATCH 1/2] virtio-blk: Factor out virtio_blk_handle_scsi_req from virtio_blk_handle_scsi List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, Stefan Hajnoczi On Thu, 05/22 09:03, Paolo Bonzini wrote: > Il 22/05/2014 08:36, Fam Zheng ha scritto: > >- > >- if (!req->dev->blk.scsi) { > >- status = VIRTIO_BLK_S_UNSUPP; > >- goto fail; > >- } > > Where did you move this condition? > > Also, the scsi field of VirtIOBlockReq is now unused. Just realized I missed that. Will fix. Thanks for reviewing! Fam