OSDN Git Service

drm/ttm: Fixed a read/write lock imbalance
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 20 Nov 2015 19:43:50 +0000 (11:43 -0800)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 26 Nov 2015 14:47:38 +0000 (15:47 +0100)
commit025af189fb44250206dd8a32fa4a682392af3301
tree93faacb2ab517087da07341fc4b2fadb4eb6674c
parent2f1371614a5d49428846b90673a89036518dffad
drm/ttm: Fixed a read/write lock imbalance

In ttm_write_lock(), the uninterruptible path should call
__ttm_write_lock() not __ttm_read_lock().  This fixes a vmwgfx hang
on F23 start up.

syeh: Extracted this from one of Thomas' internal patches.

Cc: <stable@vger.kernel.org>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/ttm/ttm_lock.c