]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d916263c544da5e008dc2f43ab76fa8b6a5ca22
tree127e18664f48171e2ab29ebeac56f917b7ef0782
parente14e23d99c79f14a6869b3e3764a7f8684e3dc39
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