aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorLinus Torvalds <[email protected]>2020-03-18 07:52:21 -0400
committerLinus Torvalds <[email protected]>2020-03-18 13:03:38 -0700
commitdcf23ac3e846ca0cf626c155a0e3fcbbcf4fae8a (patch)
treebcec3946a19e79751a97280bed14a633ad1a8ff8 /tools/perf/scripts/python/export-to-sqlite.py
parent5076190daded2197f62fe92cf69674488be44175 (diff)
locks: reinstate locks_delete_block optimization
There is measurable performance impact in some synthetic tests due to commit 6d390e4b5d48 (locks: fix a potential use-after-free problem when wakeup a waiter). Fix the race condition instead by clearing the fl_blocker pointer after the wake_up, using explicit acquire/release semantics. This does mean that we can no longer use the clearing of fl_blocker as the wait condition, so switch the waiters over to checking whether the fl_blocked_member list_head is empty. Reviewed-by: yangerkun <[email protected]> Reviewed-by: NeilBrown <[email protected]> Fixes: 6d390e4b5d48 (locks: fix a potential use-after-free problem when wakeup a waiter) Signed-off-by: Jeff Layton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions