drm/nouveau: Avoid race in the interchannel sync code.
authorFrancisco Jerez <currojerez@riseup.net>
Mon, 18 Oct 2010 01:56:40 +0000 (03:56 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 3 Dec 2010 05:06:45 +0000 (15:06 +1000)
commit2b478addc0bfaaf5031e36ee166c9457ceae628c
treedd1401b10647c280872cf1d998c76208115af9bd
parent2a6789ae5e8a6b25a0835834655205166a757a81
drm/nouveau: Avoid race in the interchannel sync code.

It needs a "strong" channel reference because it actually writes to
the channel pushbuf, otherwise the corresponding FIFO context could
get kicked off in the middle of nouveau_fence_sync().

Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_fence.c