nvme: warn only once for legacy uuid attribute
authorKeith Busch <kbusch@kernel.org>
Wed, 12 Jul 2023 14:54:59 +0000 (07:54 -0700)
committerKeith Busch <kbusch@kernel.org>
Wed, 12 Jul 2023 15:48:19 +0000 (08:48 -0700)
commitb718ae835bd5de891ff6fefa290940b7613d2b07
tree04c4e9ae1a14e5955828825e3dd4f32ad1b5f8ca
parentb938e6603660652dc3db66d3c915fbfed3bce21d
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>
drivers/nvme/host/sysfs.c