From nobody Mon Feb 9 06:26:09 2026 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 C03FCEB64D0 for ; Tue, 13 Jun 2023 17:57:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232428AbjFMR5L (ORCPT ); Tue, 13 Jun 2023 13:57:11 -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-Google-Smtp-Source: ACHHUZ4SvIkjRYigE3R7EfXa2NFlEKkpMNeBI7KHYvVwGTof6n1wmdR157IKfm7DOfWOMvfDXj+mQQ== 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: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Keith Busch --- 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)) { --=20 2.34.1