]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7355263df88bd690c2ffac5c600c5df63d286212
tree040d1f821170f170e9b6af4d91d86e5fbfca13d1
parent25b5b0a69f463534b9faf9f2ba63a33c5d1959e2
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