From: Bart Van Assche Subject: Re: [PATCH V4 00/16] use sg helper to operate scatterlist Date: Mon, 17 Jun 2019 16:52:25 -0700 Message-ID: <25be959c-82fc-996e-76ed-c1fe7b4dce5d@acm.org> References: <20190617030349.26415-1-ming.lei@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190617030349.26415-1-ming.lei@redhat.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" To: Ming Lei , linux-scsi@vger.kernel.org, "Martin K . Petersen" Cc: Michael Schmitz , devel@driverdev.osuosl.org, Hannes Reinecke , Benjamin Block , Greg Kroah-Hartman , linux-usb@vger.kernel.org, James Smart , "Ewan D . Milne" , Jim Gill , James Bottomley , Brian King , Finn Thain , "Juergen E . Fischer" , Christoph Hellwig , Dan Carpenter List-Id: linux-scsi@vger.kernel.org On 6/16/19 8:03 PM, Ming Lei wrote: > Scsi MQ makes a large static allocation for the first scatter gather > list chunk for the driver to use. This is a performance headache we'd > like to fix by reducing the size of the allocation to a 2 element > array. Doing this will break the current guarantee that any driver > using SG_ALL doesn't need to use the scatterlist iterators and can get > away with directly dereferencing the array. Thus we need to update all > drivers to use the scatterlist iterators and remove direct indexing of > the scatterlist array before reducing the initial scatterlist > allocation size in SCSI. For all patches in this series except 9/16 and 11/16, please add the following: Reviewed-by: Bart Van Assche