Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
drivers/gpu/drm/ttm/ttm_lock.c
··· 180 180 spin_unlock(&lock->lock); 181 181 } 182 182 } else 183 - wait_event(lock->queue, __ttm_read_lock(lock)); 183 + wait_event(lock->queue, __ttm_write_lock(lock)); 184 184 185 185 return ret; 186 186 }