Felix Kuehling fe528c13ac drm/amdkfd: Fix event destruction with pending waiters
When an event with pending waiters is destroyed, those waiters may
end up sleeping forever unless they are notified and woken up.
Implement the notification by clearing the waiter->event pointer,
which becomes invalid anyway, when the event is freed, and waking
up the waiting tasks.

Waiters on an event that's destroyed return failure.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
2017-10-27 19:35:23 -04:00
..
2017-09-02 14:23:06 +02:00
2017-08-27 19:29:46 +02:00
2017-11-02 12:40:41 +10:00
2017-10-16 11:29:05 +02:00
2017-11-02 12:40:41 +10:00
2017-10-01 17:01:39 +02:00
2017-11-02 12:40:41 +10:00
2017-11-02 12:40:41 +10:00
2017-09-25 08:35:53 +02:00
2017-08-27 19:30:49 +02:00
2017-10-17 10:13:47 +10:00
2017-10-16 11:29:28 +02:00
2017-08-27 19:31:06 +02:00
2017-10-25 16:31:29 +10:00