OSDN Git Service

drm: Change deadlock-avoidance algorithm for the modeset locks.
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 14 Jun 2018 07:29:22 +0000 (09:29 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 3 Jul 2018 07:46:05 +0000 (09:46 +0200)
For modeset locks we don't expect a high number of contending
transactions so change algorithm from Wait-Die to Wound-Wait.

Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
drivers/gpu/drm/drm_modeset_lock.c

index 638be2e..8a51006 100644 (file)
@@ -70,7 +70,7 @@
  * lists and lookup data structures.
  */
 
-static DEFINE_WD_CLASS(crtc_ww_class);
+static DEFINE_WW_CLASS(crtc_ww_class);
 
 /**
  * drm_modeset_lock_all - take all modeset locks