Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10336896rwd; Wed, 21 Jun 2023 21:24:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5LWI3agO6ml9dHfqt1BbI9pkIJUwIORKrV2gdEs82KzYPmhzuOI0UBUDcEp5RGnRTQjQwd X-Received: by 2002:a05:620a:1710:b0:763:9ee9:a1c1 with SMTP id az16-20020a05620a171000b007639ee9a1c1mr11674763qkb.19.1687407854129; Wed, 21 Jun 2023 21:24:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687407854; cv=none; d=google.com; s=arc-20160816; b=Mfsg7AXSnP8LuU1RtUsTjYw+OmU6+meiht/bVTCd00HSxzot+bIczmdcWEBJjC27P1 GAmHOvMQmsdrbAnsVaUo5WGpItUt94TZvwSJIMnvVphCRGT7iLz0jLHMdZHnAYr47NpZ uVAhsZOHtBpmN5ZE/2kPLR/rJYiUiupZd41Te7YOkXDa3mhi82MEb1jcCmeSijaY6kky c1CW43IjgrS1++/z6QPF7J85h0ArXsoYXk+RNTTxF3Di8HpDRd//ahsbm5FNBYBCqjru qNuAOt1geTpePpil8yXmxzsg85NF7KETmSJu5kRMIi6uKXLyJjEoXBVPltKdgZm5SzU0 bVEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=czH88Kn+nqmZTzNwgoZksKh07PH4Iiat8FNrd6w2ivU=; b=TGoYCedsxWjq3yW071mss3gS4muZ7y+vp0RLJfgbVOH5UHOvdlxTBZtq0EsdowKlL2 pjtRTQ5X0lmKM9yXvQVdUd+TkktQ4qKysglbYXK1GoyBGLG3YElupWZqiBOhZz5Swkrd Tcqm+p9BzGKXXYXwfSpaMxCV1fW283zR2RbIoXUoRs5FQnR1o0N8h7ULCT5fElVM+SP9 /gjWAFEBsfOArJxAhalNXfJhK8jrEzFMC7URFrXgbvV0o6o0RO6USLCXGf/FCESOKn88 H1cE2txwYsmr0+AWwj0GXX383pCApntt+bb6rPgBepJBSmZw2b1S0mWST/YRloCTT60v IqOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id az9-20020a056a02004900b005406e76606csi454681pgb.900.2023.06.21.21.24.02; Wed, 21 Jun 2023 21:24:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229747AbjFVEH6 (ORCPT + 99 others); Thu, 22 Jun 2023 00:07:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbjFVEH5 (ORCPT ); Thu, 22 Jun 2023 00:07:57 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68A2FE2 for ; Wed, 21 Jun 2023 21:07:56 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 33A7D68AFE; Thu, 22 Jun 2023 05:57:53 +0200 (CEST) Date: Thu, 22 Jun 2023 05:57:53 +0200 From: Christoph Hellwig To: Keith Busch Cc: Breno Leitao , Jens Axboe , Christoph Hellwig , Sagi Grimberg , leit@fb.com, "open list:NVM EXPRESS DRIVER" , open list Subject: Re: [PATCH v2] nvme: Print capabilities changes just once Message-ID: <20230622035753.GA4736@lst.de> References: <20230615094903.1341683-1-leitao@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 21, 2023 at 10:46:17AM -0600, Keith Busch wrote: > On Thu, Jun 15, 2023 at 02:49:03AM -0700, Breno Leitao wrote: > > if (effects & NVME_CMD_EFFECTS_CCC) { > > - dev_info(ctrl->device, > > + if (!test_and_set_bit(NVME_CTRL_DIRTY_CAPABILITY, > > + &ctrl->flags)) { > > + dev_info(ctrl->device, > > "controller capabilities changed, reset may be required to take effect.\n"); > > + } > > } > > Thanks, patch applied to nvme-6.5. > > A question for Christoph and future consideration: I *think* the > complications that had the driver stop refreshing the controller > attributes are largely mitigated by the fact we now handle effects > after the request is freed. Perhaps I'm missing something. Is there > a risk in just bringing that feature back into the driver? No, the main issue was and is that we can't just call nvme_init_ctrl_finish on a live controller.