drm/vmwgfx: Take the ttm lock around the dirty ioctl
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 5 Oct 2010 10:43:03 +0000 (12:43 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Oct 2010 01:29:48 +0000 (11:29 +1000)
commit3a939a5ece3030e60c966a885c8e9bd329c4faf7
tree127e18664f48171e2ab29ebeac56f917b7ef0782
parent02b001624f0384540299d9288fdaf37b7d37c814
drm/vmwgfx: Take the ttm lock around the dirty ioctl

This makes sure noone accesses the fifo while it's taken down using the
dirty ioctl.
Also make sure all workqueues are idled before the fifo is taken down.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c