diff options
author | Felix Kuehling <[email protected]> | 2022-08-04 18:19:38 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2022-08-10 15:41:23 -0400 |
commit | bea9a56afbc4b5a41ea579b8b0dc5e189b439504 (patch) | |
tree | 1eaac74557086267015dbeb64f40a32a4c934743 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | c4c10a68e82b8a03df234ee744acabcc648df270 (diff) |
drm/amdkfd: Handle restart of kfd_ioctl_wait_events
When kfd_ioctl_wait_events needs to restart due to a signal, we need to
update the timeout to account for the time already elapsed. We also need
to undo auto_reset of events that have signaled already, so that the
restarted ioctl will be able to count those signals again.
This fixes infinite hangs when kfd_ioctl_wait_events is interrupted by a
signal.
Signed-off-by: Felix Kuehling <[email protected]>
Reviewed-and-tested-by: Xiaogang Chen <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions