diff options
author | Jane Chu <[email protected]> | 2020-08-03 16:41:39 -0600 |
---|---|---|
committer | Vishal Verma <[email protected]> | 2020-08-03 18:54:13 -0600 |
commit | 7f674025d9f7321dea11b802cc0ab3f09cbe51c5 (patch) | |
tree | 58ddf824c15cac3c89789932322f67ba32fb3fb4 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7c02d53dfe4db08cd7b4d4be8c7f1b801cf8b899 (diff) |
libnvdimm/security: ensure sysfs poll thread woke up and fetch updated attr
commit 7d988097c546 ("acpi/nfit, libnvdimm/security: Add security DSM overwrite support")
adds a sysfs_notify_dirent() to wake up userspace poll thread when the "overwrite"
operation has completed. But the notification is issued before the internal
dimm security state and flags have been updated, so the userspace poll thread
wakes up and fetches the not-yet-updated attr and falls back to sleep, forever.
But if user from another terminal issue "ndctl wait-overwrite nmemX" again,
the command returns instantly.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 7d988097c546 ("acpi/nfit, libnvdimm/security: Add security DSM overwrite support")
Cc: Dave Jiang <[email protected]>
Cc: Dan Williams <[email protected]>
Reviewed-by: Dave Jiang <[email protected]>
Signed-off-by: Jane Chu <[email protected]>
Signed-off-by: Vishal Verma <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions