You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the first process is creating the /sys/kernel/debug/tracing/instances/rasdaemon, then the second process's mkdir will fail at the kernel code path vfs_mkdir, then the second one try to open trace_clock, but the first one doesn't create it yet.
mkdir and populating the contents in the directory is the not atomic.
Possible solution
use file lock to guard the mkdir operation
change kernel code
The text was updated successfully, but these errors were encountered:
What's happening
sometimes, systemd failed to bootstrap rasdasmon, the log looks like this:
Root Cause
systemd will start two rasdaemon process with different arguments, both of them share a common code path
rasdaemon/ras-events.c
Line 139 in c225517
rasdaemon/ras-events.c
Line 629 in c225517
If the first process is creating the
/sys/kernel/debug/tracing/instances/rasdaemon
, then the second process's mkdir will fail at the kernel code pathvfs_mkdir
, then the second one try to opentrace_clock
, but the first one doesn't create it yet.mkdir and populating the contents in the directory is the not atomic.
Possible solution
The text was updated successfully, but these errors were encountered: