From: Thomas Hellstrom Date: Thu, 14 Jun 2018 07:29:22 +0000 (+0200) Subject: drm: Change deadlock-avoidance algorithm for the modeset locks. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=07c13bb78c8b8a9cb6ee169659528945038d5e85;p=linux.git drm: Change deadlock-avoidance algorithm for the modeset locks. 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 Acked-by: Ingo Molnar --- diff --git a/drivers/gpu/drm/drm_modeset_lock.c b/drivers/gpu/drm/drm_modeset_lock.c index 638be2eb67b44..8a5100685875a 100644 --- a/drivers/gpu/drm/drm_modeset_lock.c +++ b/drivers/gpu/drm/drm_modeset_lock.c @@ -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