nvme: Print capabilities changes just once
authorBreno Leitao <leitao@debian.org>
Thu, 15 Jun 2023 09:49:03 +0000 (02:49 -0700)
committerKeith Busch <kbusch@kernel.org>
Wed, 21 Jun 2023 16:40:05 +0000 (09:40 -0700)
commitd0dd594bedc57f9be2af2af170bf56f9c3f2376e
tree2490e2d7cf5bf7963e01131d384112650469b8f0
parent2293cae703cda162684ae966db6b1b4a11b5e88f
nvme: Print capabilities changes just once

This current dev_info() could be very verbose and being printed very
frequently depending on some userspace application sending some specific
commands.

Just print this message once and skip it until the controller resets.
Use a controller flag (NVME_CTRL_DIRTY_CAPABILITY) to track if the
capability needs a reset.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h