Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2220223rwd; Tue, 13 Jun 2023 22:55:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ64kbIIeFyPBLaz4X/WddHT3XTWhlZkeD5iFt6cdIY7KaGmHNKETTu1Lpa5c73KqJeg0rux X-Received: by 2002:a05:6402:455:b0:50c:646:cafd with SMTP id p21-20020a056402045500b0050c0646cafdmr9420126edw.7.1686722143234; Tue, 13 Jun 2023 22:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686722143; cv=none; d=google.com; s=arc-20160816; b=E9BFNMBb4dJ2wj0yv+tT9Z1OtTu/0peRShhVjng4ooQ+Lh70miZtv5tjkYsSxIPZhW QGj0IsEicwpuzU0dQ20nRBx++V4e/GedYMYyXxmpXO7tKhQqozxTaLs2IT4WX4LhsE5r RUU5DSFeCbhnzhi5fKom73LUSQ6DW9d5MfzWMATxBdo6VCsLxRSQRwIY0J4QRHPdAi4k yXEzkBmhugVBNpG8g/Bb+cRftXo2ehb0V+4nd7tXh76DvkGxus8JahD4oI+5q7PVKbNV SHFfwjswEKOle9jCr04LIw5Hbx8krdAGD8lpdMkoh6PCsSXZD3oDPySvdIRFY6J0e9EE D4tw== 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=GXezkJOB0+xpzBsz4ibKK2ZkE3t6O/DtM5njKkTDDQo=; b=IQn+DMiYdlGkqOHSHU5x4+2hOTO1uMkrjhswkuPy7Xjn2+CgqIF30llw95N3yPjnIP nbHgLQwqbLtJB9Ve1IIvZbc+ipNmrlD+uTXpktIQ6P2AQd3wESxPio3vEvDI22aK5KOB n/g59/pfhdNmfuT3DB/cfpdlJFTwnMXBQOaJVjWx9SBR2QrQpNNTxPqFkiF8Fn2Tzy6W UqWvBfVpEjFuOPnjSdM2coGXdq/aG7ybzMlmfebix8vyujdqdfODO953W3hfv/k/HQs5 g8dbY7HoNGE2xA/HS1KdR8e391pRHN9lA/o0MEbzx7qEaBbaCD+F7YtujtK6vDQuw4sq Khog== 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 b24-20020aa7c6d8000000b00518744a06a4si1812939eds.83.2023.06.13.22.55.16; Tue, 13 Jun 2023 22:55:43 -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 S233343AbjFNFBL (ORCPT + 99 others); Wed, 14 Jun 2023 01:01:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233735AbjFNFBJ (ORCPT ); Wed, 14 Jun 2023 01:01:09 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5A1510C6 for ; Tue, 13 Jun 2023 22:01:06 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 8934867373; Wed, 14 Jun 2023 07:01:02 +0200 (CEST) Date: Wed, 14 Jun 2023 07:01:02 +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] nvme: Print capabilities changes just once Message-ID: <20230614050102.GA10740@lst.de> References: <20230613175538.331639-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 Tue, Jun 13, 2023 at 04:00:58PM -0600, Keith Busch wrote: > On Tue, Jun 13, 2023 at 10:55:37AM -0700, Breno Leitao wrote: > > This current dev_info() could be very verbose and being printed very > > frequently depending on some userspace application sending some specific > > commands. > > > > Let's turn it into a dev_info_once(), since it is not useful to know > > about it all the time. > > This looks good to me. Vendors sometimes put unnecessary effects in the > log, and spamming the same recommendation to repeated operations isn't > going to be helpful. I expect anyone who knows what they're doing can > consult the effects log directly and take appropriate action on their > own. Hmm, once seems very little. It might make more sense to do this once and then skip it until the controller has been reset.