Am 10.08.2017 um 01:53 schrieb Jason
Ekstrand:
As Chris pointed out, that's really not a good idea. Most of the time we need the behavior of reporting an error and only when the flag is given wait until some fence shows up. In general I suggest that we only support this use case in the form of a wait_event_interruptible() on setting the first fence on an object. Waiting on the first one of multiple objects wouldn't be possible (you would always wait till all objects have fences), but I think that this is acceptable. The big advantage of the wait_event_interruptible() interface is that your condition checking and process handling is bullet prove, as far as I have seen so far your code is a bit buggy in that direction. Christian.
|
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel