Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D23A8C38A2D for ; Wed, 26 Oct 2022 08:34:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233111AbiJZIen (ORCPT ); Wed, 26 Oct 2022 04:34:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232404AbiJZIel (ORCPT ); Wed, 26 Oct 2022 04:34:41 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D430715FC6 for ; Wed, 26 Oct 2022 01:34:38 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4My28H1WfCzpStJ; Wed, 26 Oct 2022 16:31:11 +0800 (CST) Received: from [10.169.59.127] (10.169.59.127) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 26 Oct 2022 16:34:36 +0800 Subject: Re: [PATCH 11/17] nvme-pci: don't unquiesce the I/O queues in nvme_remove_dead_ctrl To: Christoph Hellwig , Jens Axboe , Keith Busch , Sagi Grimberg CC: Ming Lei , , References: <20221025144020.260458-1-hch@lst.de> <20221025144020.260458-12-hch@lst.de> From: Chao Leng Message-ID: Date: Wed, 26 Oct 2022 16:34:35 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <20221025144020.260458-12-hch@lst.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.169.59.127] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On 2022/10/25 22:40, Christoph Hellwig wrote: > nvme_remove_dead_ctrl schedules nvme_remove to be called, which will > call nvme_dev_disable and unquiesce the I/O queues. > > Signed-off-by: Christoph Hellwig > --- > drivers/nvme/host/pci.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c > index bef98f6e1396c..3a26c9b2bf454 100644 > --- a/drivers/nvme/host/pci.c > +++ b/drivers/nvme/host/pci.c > @@ -2794,7 +2794,6 @@ static void nvme_remove_dead_ctrl(struct nvme_dev *dev) > nvme_get_ctrl(&dev->ctrl); > nvme_dev_disable(dev, false); Currently set the parameter "shutdown" to false, nvme_dev_disable() do not unquiesce the queues. Actually we should set the parameter "shutdown" to true. nvme_dev_disable(dev, true);