Received: by 10.192.165.156 with SMTP id m28csp1293027imm; Wed, 18 Apr 2018 07:26:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx48A+b3ZBH+0eSpJIjf7gRacrLfNWbXSOsROgmEamWqUEiV7P2iXnDVWy98aQumFzOMuOjib X-Received: by 2002:a17:902:5417:: with SMTP id d23-v6mr1437723pli.386.1524061591730; Wed, 18 Apr 2018 07:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524061591; cv=none; d=google.com; s=arc-20160816; b=HICOV2wNbmM+XyXjnzkzu8Hty41hIL61tbfmhgE4rw30fwCCNFmynY+Brdu8KSCcXS FhWX+cyCzH66WNMWbcq4tP9BtYCo7i70PkEE3avWPBb+HdJKaUPLsN8bygfUOcr0t41J D2AcMfkGNCYTbTrTKP9S1nNpNBPzQm5aGdx+wEYQZWub64a8VCAHxrbtkYmI1LM+54KQ 1eTVLnOUHLJ+fyvr6xX8U5bZT24gHWarqx7UH9s8W/1miNYsRFKAC/CPAiUmFHHHpR+3 7WXbRdxcBML9rCCl39bfxQZIWQgwcxkzS0P/Z25il9e4ik89FA85K0Te7BNZJ/edH5j6 LdBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=E5BlPcJlUF674PoLuBeRVIdGroK/5lRgcMQNM+ZGlJQ=; b=A3lVVQb9vOgDvl+vApY2d3Bz2k849OGJJIXcmibk0hKDKhldG4UQu0sTboTsYVe21n 74kHaGi1EZCxrlVo2X/ckmfKqDD4mCN3DBGrAi5LTTOfVyB4WeJTLxlvaMab4oz4oi1d VTd6f5gqxsxqN4mMe5ZF8IwfM04TQ0Z92zIWnOiMXeqpZcAgeStV1UcgUM8IqHSL/l84 ohL38xXRdnDj3OvxZpzLe2th5bTn2IP6OTBRBNGBL3nCeAcUYZYtxVAlU2ZUXtQOlbY2 dwKj2Yua9QOVqaR+VLaQyHbQKzaEdettlXUtN1CpY8uNPMW+2wkdG3FpCQC83cEyFGLm eHbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=dRiJUdqL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e15si1139141pga.573.2018.04.18.07.26.17; Wed, 18 Apr 2018 07:26:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=dRiJUdqL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753384AbeDROZB (ORCPT + 99 others); Wed, 18 Apr 2018 10:25:01 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:57822 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752659AbeDROZA (ORCPT ); Wed, 18 Apr 2018 10:25:00 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3IELHEJ192826; Wed, 18 Apr 2018 14:24:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=E5BlPcJlUF674PoLuBeRVIdGroK/5lRgcMQNM+ZGlJQ=; b=dRiJUdqLLCxBpfmmPa+lltUJm44mZwZgB0WpDuW3S718MWRqHI7ZLziOrmglbkEb/HnI 8fuZfy0yHRgrIJVaRNyi2vUbhkgvGNhX3RGjGoGX7+4N674eFPBD6wDGo7PfqoVkKaHz Jrloip5gvSU9w4geObSMgo6aimahbwtD91bRYWZl7KGuSBm0nG6wbgDmDMGBEu0VamLz +04M8YTUALVDnK6y9NL2NyGobCQhmqzL3HwhEfd2C6HOAHTvw3NiWppXmzEy9VKKI55d W/6OuXiUV8MhMfUIlVW7gN8XKU5yMqJ8qVm20MqAuD6YA14chFEdLmYOO6lR4bFJZhvV 9g== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2hdrxnawcj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 Apr 2018 14:24:21 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w3IEOKSh018428 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 Apr 2018 14:24:20 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w3IEOJcc012224; Wed, 18 Apr 2018 14:24:19 GMT Received: from [10.191.4.213] (/10.191.4.213) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 18 Apr 2018 07:24:19 -0700 Subject: Re: PATCH V4 0/5 nvme-pci: fixes on nvme_timeout and nvme_dev_disable To: Ming Lei Cc: axboe@fb.com, sagi@grimberg.me, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, keith.busch@intel.com, hch@lst.de References: <1520489971-31174-1-git-send-email-jianchao.w.wang@oracle.com> <20180417151700.GC16286@ming.t460p> From: "jianchao.wang" Message-ID: Date: Wed, 18 Apr 2018 22:24:28 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180417151700.GC16286@ming.t460p> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8866 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=929 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804180131 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ming On 04/17/2018 11:17 PM, Ming Lei wrote: > Looks blktest(block/011) can trigger IO hang easily on NVMe PCI device, > and all are related with nvme_dev_disable(): > > 1) admin queue may be disabled by nvme_dev_disable() from timeout path > during resetting, then reset can't move on > > 2) the nvme_dev_disable() called from nvme_reset_work() may cause double > completion on timed-out request > > So could you share us what your plan is about this patchset? Regarding to this patchset, it is mainly to fix the dependency between nvme_timeout and nvme_dev_disable, as your can see: nvme_timeout will invoke nvme_dev_disable, and nvme_dev_disable have to depend on nvme_timeout when controller no response. Till now, some parts of the patchset looks bad and seem to have a lot of work need to be done. :) Thanks Jianchao