From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYSZO-0005l0-FN for qemu-devel@nongnu.org; Mon, 08 Jan 2018 03:14:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYSZN-0008Gi-LO for qemu-devel@nongnu.org; Mon, 08 Jan 2018 03:14:10 -0500 Date: Mon, 8 Jan 2018 16:14:02 +0800 From: Fam Zheng Message-ID: <20180108081402.GE5443@lemon.usersys.redhat.com> References: <20180105225753.30509-1-eblake@redhat.com> <20180105225753.30509-8-eblake@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180105225753.30509-8-eblake@redhat.com> Subject: Re: [Qemu-devel] [PATCH v7 07/20] iscsi: Switch to .bdrv_co_block_status() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, kwolf@redhat.com, vsementsov@virtuozzo.com, qemu-block@nongnu.org, jcody@redhat.com, Peter Lieven , Max Reitz , Ronnie Sahlberg , Paolo Bonzini On Fri, 01/05 16:57, Eric Blake wrote: > We are gradually moving away from sector-based interfaces, towards > byte-based. Update the iscsi driver accordingly. In this case, > it is handy to teach iscsi_co_block_status() to handle a NULL map > and file parameter, even though the block layer passes non-NULL > values, because we also call the function directly. For now, there > are no optimizations done based on the want_zero flag. > > We can also make the simplification of asserting that the block > layer passed in aligned values. > > Signed-off-by: Eric Blake Reviewed-by: Fam Zheng