Received: by 10.223.176.5 with SMTP id f5csp117642wra; Thu, 8 Feb 2018 17:52:33 -0800 (PST) X-Google-Smtp-Source: AH8x224roHYCEvNNiORCyhTfo/GJBsoNcjg7dAntWJ8lB5RBgKfLdaW6Ndsr7sB3Ov/6aiu4hf4R X-Received: by 2002:a17:902:8b8a:: with SMTP id ay10-v6mr929923plb.156.1518141153376; Thu, 08 Feb 2018 17:52:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518141153; cv=none; d=google.com; s=arc-20160816; b=dXLcI2hIGw7j0vmTRcn2o/xsiVO8tVD/cdVqGWl7Raf01K68NX6evxxl3wlxjyHl+o 3qvuYcm3B+PT7olgT4fJ+vGXGEKx1KZvT5Vq9+1aY6/Z0me4aDbS5WV93ibM6SV1W32k sAr6mCUuLvKOGAW78X9xS8wNpubEBo5MnmCTDi1XcWURNDKQKKHAlPq8UglZy+4LLcLL AKU4B6UGi2ZXCN5R7xuLaG4k+6F0g3GcVzonbmeZQBzQhKNdAJAA6PHvfEHCRGaqS2mT eq/XanG7033YMrPoJn7rdN0zlv1HPTOONzGjYV/jJq/X3NktUS0hnJnBBaH0RZrip1JO TbNw== 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=7bCj7fK7/AWHKlp0mG60fGptzBZxdzbhrjYaV8IZ5pE=; b=vrnT+7DFWTf7i6dnw6xGpv7A0O4t72SJe7ArI49Yk92FUc0ym5I9i0THRwT6jRZicb cmUAEduV95ENZNLGyJsvOuVylQLuedJSvGrYQ9VjQL0zeqSgs64MRkGcj+TGZ8SJ8Pkv AiLBut8mljLjhwPWoQLVZ6dVEu7OVLVFsLK5dAIvOsZ2ulxRaLSNSdiJ6x/eae42/f6R d+zUTn7QLvyn5mim2NLTER5t1mH4ATzM6z2ftriCu0Y8WND3+EvH0Iz/DKE6t/POKLMl s2mvy6+Og+WFz1odBSbZsnCX3MEEOairxC4ZDs5eVZm1AgAhj4iofBT5jRUvpTFS6M4q 2q0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=fwQzzWqc; 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 t13si705824pgs.613.2018.02.08.17.52.18; Thu, 08 Feb 2018 17:52:33 -0800 (PST) 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=fwQzzWqc; 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 S1752274AbeBIBvk (ORCPT + 99 others); Thu, 8 Feb 2018 20:51:40 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:57900 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752100AbeBIBvj (ORCPT ); Thu, 8 Feb 2018 20:51:39 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w191lAts167099; Fri, 9 Feb 2018 01:51:04 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=7bCj7fK7/AWHKlp0mG60fGptzBZxdzbhrjYaV8IZ5pE=; b=fwQzzWqcMeBDeb7xECl/AYNZ7KOA1x+xbFyXq903wdZf6En+3aUeVQMOmx+vvH8PTVkK xJYeGB1pxCQPx/LKkvoAuo6p/zz/mIAsT8/NyPpvC9PwfmWRgaIzG8vk0pu6/M1bdxVU b8trUJDd8i8HvEr0W5l24bkNz+7ZP372Wco7UMv9hCn6I1TmtvKBO02jj/UrY4jgnpm1 ExsMJ/41Jl8y6Fr0LcSAiwFy5xiHY/BOAFsnD6ZMR1J2vmgu5N7jCc7JGq/pPz6YmbAO tkBiWcvonc9TLEKMFAejWOANhdaNLFntUCv/4q6zWW6CRyzEJoSHqKjT4tzJU3fdasRe FQ== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2g126p00jw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 09 Feb 2018 01:51:04 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w191p244005537 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 9 Feb 2018 01:51:03 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w191p2h8021697; Fri, 9 Feb 2018 01:51:02 GMT Received: from [10.182.69.179] (/10.182.69.179) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 08 Feb 2018 17:51:02 -0800 Subject: Re: [PATCH V2 0/6]nvme-pci: fixes on nvme_timeout and nvme_dev_disable To: Keith Busch , Sagi Grimberg Cc: axboe@fb.com, hch@lst.de, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org References: <1517822415-11710-1-git-send-email-jianchao.w.wang@oracle.com> <073ce416-fd26-b41a-187d-1db9210c48b0@grimberg.me> <20180208175606.GD5039@localhost.localdomain> From: "jianchao.wang" Message-ID: Date: Fri, 9 Feb 2018 09:50:58 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180208175606.GD5039@localhost.localdomain> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8799 signatures=668665 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802090019 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Keith and Sagi Many thanks for your kindly response. That's really appreciated. On 02/09/2018 01:56 AM, Keith Busch wrote: > On Thu, Feb 08, 2018 at 05:56:49PM +0200, Sagi Grimberg wrote: >> Given the discussion on this set, you plan to respin again >> for 4.16? > > With the exception of maybe patch 1, this needs more consideration than > I'd feel okay with for the 4.16 release. > Currently, one of the block is the nvme_wait_freeze in nvme_reset_work. This cause some issues when I test this patchset yesterday. As I posted on the V1 patchset mail thread: if we set NVME_REQ_CANCELLED and return BLK_EH_HANDLED as the RESETTING case, nvme_reset_work will hang forever, because no one could complete the entered requests. if we invoke nvme_reset_ctrl after modify the state machine to be able to change to RESETTING to RECONNECTING and queue reset_work, we still cannot move things forward, because the reset_work is being executed. if we use nvme_wait_freeze_timeout in nvme_reset_work, unfreeze and return if expires. But the timeout value is tricky.. And actually, one of the possible solution to fix this cleanly is blk_set_preempt_only. It is a lightweight way to gate the new bios out of generic_make_request. Looking forward your advice on this. And many thanks for your precious time on this. Sincerely Thanks Jianchao