From: "Matthew R. Ochs" Subject: Re: [PATCH 10/17] cxlflash: Fence EEH during probe Date: Thu, 13 Apr 2017 16:46:06 -0500 Message-ID: <000DC1F9-1C50-4137-94D4-FC6284EB7458@linux.vnet.ibm.com> References: <1492024215-55579-1-git-send-email-ukrishn@linux.vnet.ibm.com> <1492024491-55992-1-git-send-email-ukrishn@linux.vnet.ibm.com> <5393e552-5c08-2b76-9a42-c7225ac11877@au1.ibm.com> Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8BIT Return-path: Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:58517 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751139AbdDMVqU (ORCPT ); Thu, 13 Apr 2017 17:46:20 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v3DLhSaL077044 for ; Thu, 13 Apr 2017 17:46:19 -0400 Received: from e17.ny.us.ibm.com (e17.ny.us.ibm.com [129.33.205.207]) by mx0b-001b2d01.pphosted.com with ESMTP id 29t19yuk9s-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 13 Apr 2017 17:46:19 -0400 Received: from localhost by e17.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 13 Apr 2017 17:46:19 -0400 In-Reply-To: <5393e552-5c08-2b76-9a42-c7225ac11877@au1.ibm.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Andrew Donnellan Cc: Uma Krishnan , linux-scsi@vger.kernel.org, James Bottomley , "Martin K. Petersen" , "Manoj N. Kumar" , linuxppc-dev@lists.ozlabs.org, Ian Munsie , Frederic Barrat , Christophe Lombard > On Apr 13, 2017, at 1:27 AM, Andrew Donnellan wrote: > > On 13/04/17 05:14, Uma Krishnan wrote: >> From: "Matthew R. Ochs" >> >> An EEH during probe can lead to a crash as the recovery thread races >> with the probe thread. To avoid this issue, introduce new states to >> fence out EEH recovery until probe has completed. Also ensure the reset >> wait queue is flushed during device removal to avoid orphaned threads. >> >> Signed-off-by: Matthew R. Ochs >> Signed-off-by: Uma Krishnan > > The use of the term "fence" in the commit message might be a bit confusing given how the term is already used in the context of EEH :) Hi Andrew, I agree that it could be a bit misleading but think the commit message is descriptive enough to avoid confusion. If you feel strongly about it I'm happy to reword the commit. -matt