Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1590411rwd; Tue, 13 Jun 2023 11:09:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5BCQSVwtfCJrFoM+rzrT0igftXdT/uYG96OWqtdqkFdF297D3a8rpKFT+GFtQ8avJgdS0V X-Received: by 2002:a17:902:daca:b0:1b3:e68e:815a with SMTP id q10-20020a170902daca00b001b3e68e815amr3839095plx.7.1686679748081; Tue, 13 Jun 2023 11:09:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686679748; cv=none; d=google.com; s=arc-20160816; b=C/VeAN6IWrtEnK/264+YvL5Pmk3wwmR89rtYKQK6hlUMjH1/AN2HXtwpG7tFO1G6Ki qVbjYAqCoPrS8ES4g05rFY4PFyTEAmuItrT5qdLg6/X6UatRo8J5RMXkqDkRR3ZycYyx KS7TNb9atlIMQFOMAhKExI69mLZT7i4g8IrkMx0PVAYv0ZGj1n3n/mimL/NAJVy6QPwR v1lDCOiS5nZMpYjqGD1oMl2nyEHOCz3jxb2Midb1rRM6JHNLr0YNfcrEn85HDWlitjxY iEZg3rM6GgXKwY7kXuTrsLn+5av+2UBx7oWo2WUfuiDUA9z1CVqbJ+kbl/x/egXNj1MS 2Thw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=WN82Z//hA8DCGnigkJsaIDeW/GJCYIky/AxnHlgXepY=; b=aQaTotd5rUFWc0lM1Azuwj0jEK9phTcXnwGJxxsYnlyf6MFk39TCGTsxQe3hBoN2tA gLseLqLlK4xWMhW20I5+AiuvCnIbox0wNOps7FvOkyJ/e9D/Vm5rJ29hOWdddaAX6xcb DPXI8LZq4z3QH+CRfnXAphYz0jiIvTjU234Atv9iKvdOLHFZwP9li2zrR1Wu1I05gSIY CyhSwpruZjaBdVCQ9yeckovO/bG5Mb3qfdp3yVbfspAiIc2jEtG/fe+6BD8FcGPkiZBN 5Secrbft7DXV9vtPeNr8d7zFG9LAMbht1QYLqwcGM51HxbG/frXebVaYQNkqjrGxP7Px k2fg== 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 t3-20020a170902bc4300b001a6ade4c8c2si6590298plz.142.2023.06.13.11.08.53; Tue, 13 Jun 2023 11:09:08 -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 S232005AbjFMR5K (ORCPT + 99 others); Tue, 13 Jun 2023 13:57:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjFMR5J (ORCPT ); Tue, 13 Jun 2023 13:57:09 -0400 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 342BB13E for ; Tue, 13 Jun 2023 10:57:08 -0700 (PDT) Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-3f8d61cb36cso5888745e9.1 for ; Tue, 13 Jun 2023 10:57:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686679026; x=1689271026; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WN82Z//hA8DCGnigkJsaIDeW/GJCYIky/AxnHlgXepY=; b=XuBvJ82r6jVqwTGPb4VzDV2bKoqZEWlOyuWKZDF8zXn3+qdn3n8wOarKIglSN/WoG9 u9q+fX1cwov7EIb3X5xMuOjMQ/Khi2izi5A03FXDOyT4z2HgrQ06ngtWfPz9oJbMavSJ XTW9OQIGzEIeQbZit3aF/b006ey0ww4C/yTSS9plpBuZryLGYZQHIHkXMyYL7dujdFba YqLl/uPHrgFtsxzbJ5JrjoHqWSnSU1dG9xeN12W2wnw2c/g6ACDB8m/+vHhRbIX728fZ H+opzBvrLxGkcq+qj38SyMnuYuRobi11uNaEYZmEWmEkv2a+f5kebP+nssMkXHh78YFH U+Qw== X-Gm-Message-State: AC+VfDx7vjvyLMAxdtLnxfSx3rBhntFxtDoFQmgM60Ieqctru5lkRWVM k1UqlYZzb/PMaUffMBv3QFN6/AfDJ9I= X-Received: by 2002:a7b:cc84:0:b0:3f6:476:915 with SMTP id p4-20020a7bcc84000000b003f604760915mr10289073wma.6.1686679026365; Tue, 13 Jun 2023 10:57:06 -0700 (PDT) Received: from localhost (fwdproxy-cln-116.fbsv.net. [2a03:2880:31ff:74::face:b00c]) by smtp.gmail.com with ESMTPSA id e8-20020adff348000000b00304adbeeabbsm16029549wrp.99.2023.06.13.10.57.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 10:57:05 -0700 (PDT) From: Breno Leitao To: Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg Cc: leit@fb.com, linux-nvme@lists.infradead.org (open list:NVM EXPRESS DRIVER), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] nvme: Print capabilities changes just once Date: Tue, 13 Jun 2023 10:55:37 -0700 Message-Id: <20230613175538.331639-1-leitao@debian.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 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. Signed-off-by: Breno Leitao --- drivers/nvme/host/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 3ec38e2b9173..459e5a84e596 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -1134,7 +1134,7 @@ void nvme_passthru_end(struct nvme_ctrl *ctrl, struct nvme_ns *ns, u32 effects, mutex_unlock(&ctrl->scan_lock); } if (effects & NVME_CMD_EFFECTS_CCC) { - dev_info(ctrl->device, + dev_info_once(ctrl->device, "controller capabilities changed, reset may be required to take effect.\n"); } if (effects & (NVME_CMD_EFFECTS_NIC | NVME_CMD_EFFECTS_NCC)) { -- 2.34.1