drm/vmwgfx: Fix query buffer locking order violation
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 31 Mar 2014 08:20:30 +0000 (10:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 May 2014 20:20:32 +0000 (13:20 -0700)
commit900bbb9d90c65a8fa4efa9dca20f5c780e698bae
tree13315383235dc25f305906fe0c45c2f7232f6479
parent558399b4fa247e9841056bcc0116be6755fcc1ba
drm/vmwgfx: Fix query buffer locking order violation

commit c8e5e010ef12df6707a1d711a5279a22f67a355e upstream.

The query buffers were reserved while holding the binding mutex, which
caused a circular locking dependency.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vmwgfx/vmwgfx_context.c