drm/nouveau/vm: take subdev mutex, not the mm, protects against race with vm/nvc0
authorBen Skeggs <bskeggs@redhat.com>
Mon, 13 May 2013 12:26:26 +0000 (22:26 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 1 Jul 2013 03:45:03 +0000 (13:45 +1000)
commit4e67bee8e129c072e5498bd192b9cb8aa7e62a89
tree64f83ce0bffd874d82b4fe474ae696b4c5cccf11
parent15cace591788552717269f0d1a5f292b08af39ed
drm/nouveau/vm: take subdev mutex, not the mm, protects against race with vm/nvc0

nvc0_vm_flush() accesses the pgd list, which will soon be able to race
with vm_unlink() during channel destruction.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/vm/base.c