Skip to content

Commit b718ae8

Browse files
committed
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>
1 parent b938e66 commit b718ae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/host/sysfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static ssize_t uuid_show(struct device *dev, struct device_attribute *attr,
9292
* we have no UUID set
9393
*/
9494
if (uuid_is_null(&ids->uuid)) {
95-
dev_warn_ratelimited(dev,
95+
dev_warn_once(dev,
9696
"No UUID available providing old NGUID\n");
9797
return sysfs_emit(buf, "%pU\n", ids->nguid);
9898
}

0 commit comments

Comments
 (0)