drm/nouveau: Take fence spinlock before reading the last sequence.
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 28 Aug 2010 15:56:33 +0000 (17:56 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 2 Sep 2010 22:23:30 +0000 (08:23 +1000)
commit3ba6462355c1c69dde58739a871d13bbb993e2e3
tree040d1f821170f170e9b6af4d91d86e5fbfca13d1
parentab699ec64a4294f2f6ccd34b9bf8a2dcb4c4cb3c
drm/nouveau: Take fence spinlock before reading the last sequence.

It fixes a race between the TTM delayed work queue and the GEM IOCTLs
(fdo bug 29583) uncovered by the BKL removal.

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