diff options
author | Keith Busch <kbusch@kernel.org> | 2023-07-12 07:54:59 -0700 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2023-07-12 08:48:19 -0700 |
commit | b718ae835bd5de891ff6fefa290940b7613d2b07 (patch) | |
tree | 04c4e9ae1a14e5955828825e3dd4f32ad1b5f8ca /drivers | |
parent | b938e6603660652dc3db66d3c915fbfed3bce21d (diff) | |
download | lwn-b718ae835bd5de891ff6fefa290940b7613d2b07.tar.gz lwn-b718ae835bd5de891ff6fefa290940b7613d2b07.zip |
nvme: warn only once for legacy uuid attribute
Report the legacy fallback behavior for uuid attributes just once
instead of logging repeated warnings for the same condition every time
the attribute is read. The old behavior is too spamy on the kernel logs.
Cc: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reported-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/nvme/host/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/sysfs.c b/drivers/nvme/host/sysfs.c index 45e91811f905..212e1b05d298 100644 --- a/drivers/nvme/host/sysfs.c +++ b/drivers/nvme/host/sysfs.c @@ -92,7 +92,7 @@ static ssize_t uuid_show(struct device *dev, struct device_attribute *attr, * we have no UUID set */ if (uuid_is_null(&ids->uuid)) { - dev_warn_ratelimited(dev, + dev_warn_once(dev, "No UUID available providing old NGUID\n"); return sysfs_emit(buf, "%pU\n", ids->nguid); } |