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 14:10:45 +0000 (15:10 +0100)
commitb8620e2eab7e9ea6b646686707ceae80229beabc
tree113f8ef484254eceb0ac0a436d81ce869c9be738
parentadeb26dc7533ec231d3af71c3aa551c8d3d94390
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