Return-Path: Received: from smtp.nue.novell.com ([195.135.221.5]:45974 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751079AbdEEGPa (ORCPT ); Fri, 5 May 2017 02:15:30 -0400 Subject: Re: [PATCH 05/19] target: Allocate sg-list correctly To: Bart Van Assche , Nicholas Bellinger References: <20170504225102.8931-1-bart.vanassche@sandisk.com> <20170504225102.8931-6-bart.vanassche@sandisk.com> Cc: target-devel@vger.kernel.org, Christoph Hellwig , Andy Grover , David Disseldorp , stable@vger.kernel.org From: Hannes Reinecke Message-ID: Date: Fri, 5 May 2017 08:15:27 +0200 MIME-Version: 1.0 In-Reply-To: <20170504225102.8931-6-bart.vanassche@sandisk.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: On 05/05/2017 12:50 AM, Bart Van Assche wrote: > Avoid that the iSCSI target driver complains about "Initial page entry > out-of-bounds" and closes the connection if the SCSI Data-Out buffer > is larger than the buffer size specified through the CDB. This patch > prevents that running the libiscsi regression tests against LIO trigger > an infinite loop of libiscsi submitting a command, LIO closing the > connection and libiscsi resubmitting the same command. > > Signed-off-by: Bart Van Assche > Cc: Hannes Reinecke > Cc: Christoph Hellwig > Cc: Andy Grover > Cc: David Disseldorp > Cc: > --- > drivers/target/target_core_transport.c | 29 ++++++++++------------------- > include/target/target_core_base.h | 4 +++- > 2 files changed, 13 insertions(+), 20 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@suse.com +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N�rnberg GF: F. Imend�rffer, J. Smithard, D. Upmanyu, G. Norton HRB 21284 (AG N�rnberg)