[Bug] Crystal Ridge: Fix device-dax sysfs duplicate name warning / failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
intel |
Fix Released
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Artful |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Fix warnings of the form...
WARNING: CPU: 10 PID: 4983 at fs/sysfs/dir.c:31 sysfs_warn_
sysfs: cannot create duplicate filename '/class/
Call Trace:
dump_stack+
__warn+0xcb/0xf0
warn_slowpath_
? kernfs_
sysfs_warn_
sysfs_do_
sysfs_create_
device_
devm_create_
dax_pmem_
nvdimm_
...by reusing the namespace id for the device-dax instance name.
Now that we have decided that there will never by more than one
device-dax instance per libnvdimm-namespace parent device [1], we can
directly reuse the namepace ids. There are some possible follow-on
cleanups, but those are saved for a later patch to simplify the -stable
backport.
[1]: https:/
Fixes: 98a29c39dc68 ("libnvdimm, namespace: allow creation of multiple pmem...")
Cc: Jeff Moyer <email address hidden>
Cc: <email address hidden>
Reported-by: Dariusz Dokupil <email address hidden>
Signed-off-by: Dan Williams <email address hidden>
Target Release: 17.10
Target Kernel: 4.13
information type: | Proprietary → Public |
Changed in linux (Ubuntu Artful): | |
importance: | Undecided → Medium |
status: | Incomplete → In Progress |
bbb3be170ac2 device-dax: fix sysfs duplicate warnings