diff options
| author | Joshua Bakita <jbakita@cs.unc.edu> | 2020-05-14 23:12:02 -0400 |
|---|---|---|
| committer | Joshua Bakita <jbakita@cs.unc.edu> | 2020-05-14 23:12:02 -0400 |
| commit | a7a2cf94018a239e11d4637b870e4e073e60a998 (patch) | |
| tree | 47ee7f2e7af7140c8b61f7c546e6644d7776ef38 /tools/perf/scripts/python/bin | |
| parent | 86fca2548ed619530c5f8a5ebe48d150ee71630f (diff) | |
Require `g_lock` in g_finish_switch()
While Linux will probably never run g_finish_switch() while we're
in edfsc_gschedule() on the same core, g_finish_switch() may run
simultaneously to an edfsc_gschedule() on a remote core. This may
not be safe, as requeue() modifies global data structures and is
currently called in g_finish_switch().
Make certain this is safe by obtaining `g_lock` for the whole
function. If future refactors remove the requeue() call from this
function, it is likely safe to revert this commit.
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
