From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Herbszt Subject: Re: [PATCH v2, RESEND] Separate target visibility from reaped state information Date: Wed, 6 Jan 2016 22:34:30 +0100 Message-ID: <20160106223430.000027d7@localhost> References: <568CCF4F.2000108@sandisk.com> <1452095926.2312.2.camel@HansenPartnership.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mout.gmx.net ([212.227.15.15]:53539 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751708AbcAFVe7 (ORCPT ); Wed, 6 Jan 2016 16:34:59 -0500 In-Reply-To: <1452095926.2312.2.camel@HansenPartnership.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: James Bottomley Cc: Bart Van Assche , "Martin K. Petersen" , Christoph Hellwig , Johannes Thumshirn , Dan Williams , "linux-scsi@vger.kernel.org" , Sebastian Herbszt James Bottomley wrote: > On Wed, 2016-01-06 at 09:24 +0100, Bart Van Assche wrote: > > Instead of representing the states "visible in sysfs" and > > "has been removed from the target list" by a single state > > variable, use two variables to represent this information. > > > > This patch avoids that SCSI device removal can trigger a > > soft lockup. > > It does? When I asked you this the last time, you said the soft lockup > was fixed by a prior patch: > > http://thread.gmane.org/gmane.linux.scsi/107248 > > If you've actually caught a problem, can we have details because the > distro people will want to know what gets fixed by this. > > Thanks, > > James Which details do you need? > > See also: > > * "scsi: restart list search after unlock in scsi_remove_target" > > (commit 40998193560d). > > * "scsi_remove_target: fix softlockup regression on hot remove" > > (commit bc3f02a795d3). > > > > Reported-by: Sebastian Herbszt > > Tested-by: Sebastian Herbszt > > Signed-off-by: Bart Van Assche > > Cc: Christoph Hellwig > > Cc: Johannes Thumshirn > > Cc: Dan Williams > > Cc: stable > > --- > > drivers/scsi/scsi_scan.c | 31 +++---------------------------- > > drivers/scsi/scsi_sysfs.c | 7 ++++--- > > include/scsi/scsi_device.h | 9 ++------- > > 3 files changed, 9 insertions(+), 38 deletions(-) > > > > See also: > > - http://thread.gmane.org/gmane.linux.scsi/107245. I was able to hit a soft lockup and reported it here: > > - http://thread.gmane.org/gmane.linux.scsi/108614. Sebastian