[PATCH 2/3] sync: Serialise access to the fence before waking clients

2014-05-12 Thread Chris Wilson
By waking the clients before we finish the work associated with the fence we expose ourselves to a race where the clients may see the incomplete results. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk --- miext/sync/misyncshm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH 2/3] sync: Serialise access to the fence before waking clients

2014-05-12 Thread Keith Packard
Chris Wilson ch...@chris-wilson.co.uk writes: diff --git a/miext/sync/misyncshm.c b/miext/sync/misyncshm.c index 01f82fc..4d11b57 100644 --- a/miext/sync/misyncshm.c +++ b/miext/sync/misyncshm.c @@ -50,9 +50,9 @@ miSyncShmFenceSetTriggered(SyncFence * pFence) { SyncShmFencePrivatePtr