Received: by 10.223.176.5 with SMTP id f5csp1398684wra; Fri, 9 Feb 2018 19:15:46 -0800 (PST) X-Google-Smtp-Source: AH8x224O6yh2rnVa2mD1qDhQuc8tijzNXz01AkNAzMYvT+4z+NdKQu/amF8jQqCKmpE1WMe6Bsyi X-Received: by 10.99.171.10 with SMTP id p10mr4034306pgf.81.1518232546378; Fri, 09 Feb 2018 19:15:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518232546; cv=none; d=google.com; s=arc-20160816; b=ng7BWoXyRAe+5KZcruFg1VFrhV6mMweR//79aKTuPKMv0HbiwryqVbvq3haAHfr2f1 e5TDybnfbEvHADOKxK4bJDjskb/9tLp+0c6Si5AvgpdpT/Bu29aAUdjPCObGpxcAHz1e 9T8YKakdZ+81CIXGFaK3N4oIeUWYrLVOR3sPcq8l//xwZ1jeL1ySy6BY4QyesCfe161A rqPx9jN67hgVvCwcdrAVYSlN3puOpx7mtPTnvuXddV7aHOs7NWfv7yPCTLP0Zf9+D66k hMKa0bw+YFdwzUKhIlD4kAnk+riGQmKSgPDQMeLN8WaPpA6EmHVc6rhitnxsYYSkPD2S UbQw== 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=GBpngbA2JneIJVTgFrG5TOT5yzdKt2Xc7DkWwxC0hk4=; b=1Bl2lq6cmVbKWexhTemNVN551bPc99PZYT6WM+V7zGzWoOEwoagoGV+PGY1fBvFDiQ FpzuH9fJQ7F6jVTuDti3Vtgz4fYHg0Iaul7hCoMB1RHEKuyr9otNWT5suC5t6jSsFANf 16Dudsqtdn8UyoE7nzrwWT8lQ0+o7cpcuPJosAYb8DyDAzZsT/kYtrUOVmSqnTr0lCRR 7P4crCh4z5XK7KzY8EwZwfH2pWAkQQheh8XSx9mIGNW5XWZEhb0kWHU/w85dKeOa8Zuc gugB7QvWs4V+HWonis0FpwDSimiMoZHxkC4+9IvvlWrZrJJxQj3C8rkFHFwmMsctv545 LBJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=vkpHtdPC; 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 t3-v6si484851plm.224.2018.02.09.19.15.30; Fri, 09 Feb 2018 19:15:46 -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=vkpHtdPC; 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 S1751038AbeBJDOw (ORCPT + 99 others); Fri, 9 Feb 2018 22:14:52 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:52278 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750832AbeBJDOv (ORCPT ); Fri, 9 Feb 2018 22:14:51 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w1A3EN8i094419; Sat, 10 Feb 2018 03:14:27 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=GBpngbA2JneIJVTgFrG5TOT5yzdKt2Xc7DkWwxC0hk4=; b=vkpHtdPCu+5yBoJqnQzRnzr2zzRp0LQJhqnWaE1un4Y42F7F2iIN23Nb7eHFreTpKXnt 484H8bv68z3ArwBCoS1wpwEX8QO3dtBh00m0NQwvMklIKLNRHsbB6oQI5TcLzhdXEOMl Tp29KLm+bKUgppFmdE9idfn0Y4H0a5R7dRH0rjxYFyVIIv0JTCgfMUNdS90pzAx/WpXZ icp/AfhM4DTVnfujbRAJ/3CalcMe8dOA0b6uw0oNaGCGFt9gnjiM6/rZ1ewRKGx1hT4e oJ1TKj6PzmG77+0xTGcDx5zrlMRogsWw/m6wc+4ZJiKpk+tPKd7VzN78OECuK7sMVuV4 tA== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2130.oracle.com with ESMTP id 2g1rexr178-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 10 Feb 2018 03:14:27 +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 w1A2xYf2014884 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 10 Feb 2018 02:59:34 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w1A2xX9P016642; Sat, 10 Feb 2018 02:59:33 GMT Received: from [10.191.5.55] (/10.191.5.55) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 09 Feb 2018 18:59:33 -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: <1aa130e6-a1ff-bd17-a141-1a52f596dd8b@oracle.com> Date: Sat, 10 Feb 2018 10:59:32 +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=8800 signatures=668666 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=962 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802100039 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Keith 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. > > Looking forward your advice and directive. Avoid wait_freeze in nvme_reset_work should be a better way to fix this defect. > > Thanks > Jianchao