From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41597C31E44 for ; Mon, 17 Jun 2019 08:22:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 195A820652 for ; Mon, 17 Jun 2019 08:22:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727469AbfFQIWk (ORCPT ); Mon, 17 Jun 2019 04:22:40 -0400 Received: from verein.lst.de ([213.95.11.211]:33901 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726834AbfFQIWj (ORCPT ); Mon, 17 Jun 2019 04:22:39 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 9099868B02; Mon, 17 Jun 2019 10:22:06 +0200 (CEST) Date: Mon, 17 Jun 2019 10:22:06 +0200 From: Christoph Hellwig To: Ming Lei Cc: linux-scsi@vger.kernel.org, "Martin K . Petersen" , James Bottomley , Bart Van Assche , Hannes Reinecke , Christoph Hellwig , Jim Gill , Cathy Avery , "Ewan D . Milne" , Brian King , James Smart , "Juergen E . Fischer" , Michael Schmitz , Finn Thain , Greg Kroah-Hartman , devel@driverdev.osuosl.org, linux-usb@vger.kernel.org, Dan Carpenter , Benjamin Block Subject: Re: [PATCH V4 01/16] scsi: vmw_pscsi: use sg helper to operate scatterlist Message-ID: <20190617082206.GA7455@lst.de> References: <20190617030349.26415-1-ming.lei@redhat.com> <20190617030349.26415-2-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190617030349.26415-2-ming.lei@redhat.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Mon, Jun 17, 2019 at 11:03:34AM +0800, Ming Lei wrote: > Use the scatterlist iterators and remove direct indexing of the scatterlist > array. > > This way allows us to pre-allocate one small scatterlist, which can be chained > with one runtime allocated scatterlist if the pre-allocated one isn't enough > for the whole request. > > Reviewed-by: Ewan D. Milne Looks good, Reviewed-by: Christoph Hellwig