aboutsummaryrefslogtreecommitdiff
path: root/lib/timerqueue.c
diff options
context:
space:
mode:
authorJohn Einar Reitan <[email protected]>2017-10-09 15:49:36 +0200
committerGustavo Padovan <[email protected]>2017-10-09 13:09:19 -0300
commitf7974880cf869ddbd0ba9a8e2ab11dff4a667f96 (patch)
tree4af4bb0a2408c66ff77c5bf441a23ec4643cf81e /lib/timerqueue.c
parent78279127253a6c36ed8829eb2b7bc28ef48d9717 (diff)
sync_file: Return consistent status in SYNC_IOC_FILE_INFO
sync_file_ioctl_fence_info has a race between filling the status of the underlying fences and the overall status of the sync_file. If fence transitions in the time frame between its sync_fill_fence_info and the later dma_fence_is_signaled for the sync_file, the returned information is inconsistent showing non-signaled underlying fences but an overall signaled state. This patch changes sync_file_ioctl_fence_info to track what has been encoded and using that as the overall sync_file status. Tested-by: Vamsidhar Reddy Gaddam <[email protected]> Signed-off-by: John Einar Reitan <[email protected]> Cc: Sumit Semwal <[email protected]> Cc: Gustavo Padovan <[email protected]> Cc: [email protected] Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Gustavo Padovan <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions