nvme-pci: refresh visible attrs for cmb attributes
authorKeith Busch <kbusch@kernel.org>
Thu, 16 Feb 2023 16:44:03 +0000 (08:44 -0800)
committerChristoph Hellwig <hch@lst.de>
Fri, 17 Feb 2023 07:31:05 +0000 (08:31 +0100)
commite917a849c3fc317c4a5f82bb18726000173d39e6
tree552279b251588a4613da00dde3a07438083451fa
parent9a28b92cc21e8445c25b18e46f41634539938a91
nvme-pci: refresh visible attrs for cmb attributes

The sysfs group containing the cmb attributes is registered before the
driver knows if they need to be visible or not. Update the group when
cmb attributes are known to exist so the visibility setting is correct.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=217037
Fixes: 86adbf0cdb9ec65 ("nvme: simplify transport specific device attribute handling")
Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c