aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorGustavo Padovan <[email protected]>2017-07-29 12:22:16 -0300
committerGustavo Padovan <[email protected]>2017-07-31 14:11:15 -0300
commit3792b7c1a70815fe4e954221c096f9278638fd21 (patch)
tree4bbd50bc1eaa3e450f3258d78f64dccc735064a4 /tools/perf/scripts/python/syscall-counts-by-pid.py
parent150b6a9d7d6fffb95c0a5349960a10569e8218b5 (diff)
dma-buf/sw_sync: clean up list before signaling the fence
If userspace already dropped its own reference by closing the sw_sync fence fd we might end up in a deadlock where dma_fence_is_signaled_locked() will trigger the release of the fence and thus try to hold the lock to remove the fence from the list. dma_fence_is_signaled_locked() tries to release/free the fence and hold the lock in the process. We fix that by changing the order operation and clean up the list and rb-tree first. v2: Drop fence get/put dance and manipulate the list first (Chris Wilson) Cc: Chris Wilson <[email protected]> Signed-off-by: Gustavo Padovan <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions