diff options
author | Dave Jiang <[email protected]> | 2024-02-06 12:03:39 -0700 |
---|---|---|
committer | Dan Williams <[email protected]> | 2024-02-16 23:20:34 -0800 |
commit | cc214417f06f6b0a8f6da09220c8bcdb742210b9 (patch) | |
tree | b047a19e05f3acb3b746be751f5c766eb72339d9 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 10cb393d769bed9473e1fa8d34e4d6d389db9155 (diff) |
cxl: Fix sysfs export of qos_class for memdev
Current implementation exports only to
/sys/bus/cxl/devices/.../memN/qos_class. With both ram and pmem exposed,
the second registered sysfs attribute is rejected as duplicate. It's not
possible to create qos_class under the dev_groups via the driver due to
the ram and pmem sysfs sub-directories already created by the device sysfs
groups. Move the ram and pmem qos_class to the device sysfs groups and add
a call to sysfs_update() after the perf data are validated so the
qos_class can be visible. The end results should be
/sys/bus/cxl/devices/.../memN/ram/qos_class and
/sys/bus/cxl/devices/.../memN/pmem/qos_class.
Signed-off-by: Dave Jiang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Jonathan Cameron <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions