drm: Convert idr spinlocks to lockmgr locks
authorFrançois Tigeot <ftigeot@wolfpond.org>
Thu, 5 Dec 2013 12:39:36 +0000 (13:39 +0100)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Thu, 5 Dec 2013 13:53:17 +0000 (14:53 +0100)
commit98a11977e6dcf0ebd569c1c65b6f0d4dd1c9bd2f
tree62be701b37c5a76ee1bdbb445f8856900b1c8407
parentaf4b81b9fa0b40a0b482311a55a909d593a54aee
drm: Convert idr spinlocks to lockmgr locks

* Since the idr code uses blocking calls in some code paths we can't
  hold spin locks accross idr calls

* This commit and the idr infinite loop one fix system freeze issues
  with some Xorg operations involving a huge number of pixmaps
sys/dev/drm/drm_crtc.c
sys/dev/drm/drm_gem.c
sys/dev/drm/include/drm/drmP.h
sys/dev/drm/include/drm/drm_crtc.h