Skip to content
Commit 14005c96 authored by Eugen Hristev's avatar Eugen Hristev Committed by Christoph Hellwig
Browse files

nvme-pci: refresh visible attrs after being checked



The sysfs attributes are registered early, but the driver does not know
whether they are needed or not at that moment.

For the CMB attributes, commit e917a849 ("nvme-pci: refresh visible
attrs for cmb attributes") solved this problem by
calling nvme_update_attrs after mapping the CMB.  However the issue
persists for the HMB attributes. To solve the problem, moved the call to
nvme_update_attrs after nvme_setup_host_mem, which sets up the HMB.

Fixes: e917a849 ("nvme-pci: refresh visible attrs for cmb attributes")
Fixes: 86adbf0c ("nvme: simplify transport specific device attribute handling")
Signed-off-by: default avatarEugen Hristev <eugen.hristev@collabora.com>
Signed-off-by: default avatarAndré Almeida <andrealmeid@igalia.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 190f4c2c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment