drm/vmwgfx: Fix a circular locking dependency in the fbdev code
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 18 Aug 2015 16:07:38 +0000 (09:07 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 21 Aug 2015 07:37:46 +0000 (00:37 -0700)
commit772269f970129a7b9b50d68684b2568a41850111
tree24f9b6ad549834f2f6c3fb257b02dade0be1b762
parent294947a5c7f6d228b70fcc51a89527e74a38a2c5
drm/vmwgfx: Fix a circular locking dependency in the fbdev code

When a user-space process writes directly to the fbdev framebuffer,
we hit a circular locking dependency. Fix this by introducing a local
delayed work callback so that the defio lock can be released before
calling into the modesetting code for a dirty update.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c