From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Fang Subject: Re: [PATCH v2 1/2] scsi: fix race between simultaneous decrements of ->host_failed Date: Thu, 2 Jun 2016 10:37:24 +0800 Message-ID: <574F9BE4.4020405@huawei.com> References: <1464683898-9877-1-git-send-email-fangwei1@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Return-path: Received: from szxga02-in.huawei.com ([119.145.14.65]:52320 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751558AbcFBCip (ORCPT ); Wed, 1 Jun 2016 22:38:45 -0400 In-Reply-To: Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Kevin Groeneveld , "tj@kernel.org" , "jejb@linux.vnet.ibm.com" , "martin.petersen@oracle.com" , "corbet@lwn.net" Cc: "hch@infradead.org" , "dan.j.williams@intel.com" , "linux-ide@vger.kernel.org" , "linux-scsi@vger.kernel.org" , "linux-doc@vger.kernel.org" Hi, Kevin, On 2016/6/1 22:36, Kevin Groeneveld wrote: >> Subject: [PATCH v2 1/2] scsi: fix race between simultaneous decrements of ->host_failed > > I wonder if this could be related to http://www.spinics.net/lists/linux-scsi/msg86808.html? > > I never did get to the bottom of that. If I have time I hope to retest my scsi hang issue with this patch. > The concurrently decrements of host_failed only lead to abnormal of host_failed, host_busy will be zero after error handler, and the result may be host_failed > host_busy forever. But in your case, host_busy > host_failed, so I think it's not the same case. I'm afraid that this patch can't fix your scsi hang issue. Thanks, Wei