Commit 14005c9
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 e917a84 ("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: e917a84 ("nvme-pci: refresh visible attrs for cmb attributes")
Fixes: 86adbf0 ("nvme: simplify transport specific device attribute handling")
Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
Signed-off-by: André Almeida <andrealmeid@igalia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>1 parent 190f4c2 commit 14005c9
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2101 | 2101 | | |
2102 | 2102 | | |
2103 | 2103 | | |
2104 | | - | |
2105 | | - | |
2106 | 2104 | | |
2107 | 2105 | | |
2108 | 2106 | | |
| |||
3010 | 3008 | | |
3011 | 3009 | | |
3012 | 3010 | | |
| 3011 | + | |
| 3012 | + | |
3013 | 3013 | | |
3014 | 3014 | | |
3015 | 3015 | | |
| |||
3343 | 3343 | | |
3344 | 3344 | | |
3345 | 3345 | | |
| 3346 | + | |
| 3347 | + | |
3346 | 3348 | | |
3347 | 3349 | | |
3348 | 3350 | | |
| |||
0 commit comments