Received: by 10.223.185.116 with SMTP id b49csp759343wrg; Sat, 10 Feb 2018 19:15:54 -0800 (PST) X-Google-Smtp-Source: AH8x226+ePGRTzy4WCF73i/DfVogi9W/vYabUaSaIquDno1/YpmTD75ficiBvYT4fXYXEAPB3htf X-Received: by 10.101.83.76 with SMTP id w12mr6044852pgr.95.1518318954067; Sat, 10 Feb 2018 19:15:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518318954; cv=none; d=google.com; s=arc-20160816; b=YvCwYaHtXWAOO0oE0tXNAKnNNk9D9yYKfHAkmQ/fLm4w494g38YgyifQwDGnd6wv1X 3Y/5MzAlBlJFrrjlILRothj6FgJwqhJs1FpoGP2kMn3xjf+l+5H616R1zPgB34j/ZHEG LxMkYUZC3a2g2puhNLQ6+5wreAlOB7lt0p9zXH+YvBjA7LcqrClm59Ii9zNjMPg7Z54S Ets9MKHVfLLXlFoQaKbtF8UImn+0sOxk4uYPpVhXaT6mwvGzhO1952rc8HSihziNEJ70 Eb4rZJdhcnsRoHErngUZP3K3zigvDI64jBpYCEBuNgXv74fzwRX6YW7m9lnfKM+0EQJX XTtw== 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=4/xvz+KcB1i25QDLR7eapnUvv+W6sXsuH1SXBv6EsEA=; b=bg4OkVgcSshWuMyIA+OYoiquMA+GD3ySudv0tHpd+lIBnl4SfkTNzjCBTKW/UCQMwR vPerpOh04vafes0qZPIQQoEIq7J/eo5EKPdpRVElbvkjI3F+L2/PMVULH9kbstAkLrgL v1ma6anoRXrS8rB2dCB4+ugJaDTdwdbpgwNthBFP+yFXwnZAcpqYMJqC5H0oADuv6ycG N6KyO+jUU0czj899OqmqQKT6gavKqN/UN4KqPpKx+WllwbPE6/cB0RJxHUR1raoaurOI qYgbzDHjfJNPeXNzjLNPd0k9Lh8DorAFR7qz9ABKGmpqpy3Rb1Od+1yvk0PblNbx6gyj t+qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=F0udvnjh; 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 x20-v6si693556plr.586.2018.02.10.19.15.39; Sat, 10 Feb 2018 19:15:54 -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=F0udvnjh; 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 S1752266AbeBKDPB (ORCPT + 99 others); Sat, 10 Feb 2018 22:15:01 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:54940 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752170AbeBKDPA (ORCPT ); Sat, 10 Feb 2018 22:15:00 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w1B3DEPB067296; Sun, 11 Feb 2018 03:13:16 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=4/xvz+KcB1i25QDLR7eapnUvv+W6sXsuH1SXBv6EsEA=; b=F0udvnjhRXv1gLpa2ODyeZ/jJUOLAfu+IUSGonfccpJR+18sCop9XyueIXpHvBJGqmVd sUcPxpt2xvtXXJ5BjovCdwCwwLKyXMTw8JpP5D1y6PYGuYRCotuyVlcjZ6F+SQCYJVTM cG245Xjcv4ShJV0BLjVYRJe8fYu/7TMGZdhptQv0MMcE4L9WT/cytsA2rJow5UC/PYVW GbD2O66dIAJIN6Vm+kjY+NFic5LKNHpdOm53WSToYO5vxQfxaqI/YfkgYohAgLycO0r+ 38GebuK6dMKjzbUUDgTn7pwqaORPrmX5V4MGyb728guox4FO8Tkeq69VKX6HNei+Aeni UQ== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2g2cnw82p9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 11 Feb 2018 03:13:15 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w1B36TZs002763 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 11 Feb 2018 03:06:29 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w1B36Rmw014150; Sun, 11 Feb 2018 03:06:28 GMT Received: from [10.182.69.179] (/10.182.69.179) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 10 Feb 2018 19:06:27 -0800 Subject: Re: [PATCH V2 0/6]nvme-pci: fixes on nvme_timeout and nvme_dev_disable To: Keith Busch Cc: axboe@fb.com, hch@lst.de, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, Sagi Grimberg References: <1517822415-11710-1-git-send-email-jianchao.w.wang@oracle.com> <073ce416-fd26-b41a-187d-1db9210c48b0@grimberg.me> <20180208175606.GD5039@localhost.localdomain> <20180209171231.GB6970@localhost.localdomain> From: "jianchao.wang" Message-ID: <1872576f-8b5c-0f7f-3d7a-c769543ace87@oracle.com> Date: Sun, 11 Feb 2018 11:06:29 +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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8801 signatures=668668 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-1802110041 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/10/2018 10:32 AM, jianchao.wang wrote: > Hi Keith > > Thanks for your kindly response here. > That's really appreciated. > > On 02/10/2018 01:12 AM, Keith Busch wrote: >> On Fri, Feb 09, 2018 at 09:50:58AM +0800, jianchao.wang wrote: >>> >>> 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. >> >> Except it's no longer in the "RESETTING" case since you added the >> "CONNECTING" state, so that's already broken for other reasons... >> > > Yes, but as your patch, we have to fail the IOs and even kill the controller. > In fact, up to nvme_wait_freeze in nvme_reset_work, the RECONNECTING state has been completed. > We even could say it is in LIVE state. Maybe we should recover the controller again instead > of fail the IOs and kill the controller. > > On the other hand, can you share with me why we cannot use blk_set_preempt_only to replace > blk_freeze_queue ? we just want to gate the new bios out of generic_make_request and we > needn't use the preempt requests. Looks like blk_freeze_queue in blk_mq_update_nr_hw_queues cannot be worked around. Still face IOs in nvme_reset_work. T_T > > Looking forward your advice and directive. > > Thanks > Jianchao > > >> _______________________________________________ >> Linux-nvme mailing list >> Linux-nvme@lists.infradead.org >> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.infradead.org_mailman_listinfo_linux-2Dnvme&d=DwICAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=7WdAxUBeiTUTCy8v-7zXyr4qk7sx26ATvfo6QSTvZyQ&m=UqKQMB3A2ppfm2sN7PyisX0xTtXKsHlTBwjsS18qVx8&s=A2VMSm9IjQQXxM7foB6VUiRHLs-nIREF2_kMstwxlgw&e= >> > > _______________________________________________ > Linux-nvme mailing list > Linux-nvme@lists.infradead.org > https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.infradead.org_mailman_listinfo_linux-2Dnvme&d=DwICAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=7WdAxUBeiTUTCy8v-7zXyr4qk7sx26ATvfo6QSTvZyQ&m=cstI6JeNHGVX4OV1UdHdoemUr75aCUAjUrPe23Dhv8U&s=MYTmBPYS5tW4vC23iMEKINprtCxnRHe5AXrbST91XpY&e= >