[PATCH] drm: Implement drm_modeset_{,un}lock_all_ctx()
Maarten Lankhorst
maarten.lankhorst at linux.intel.com
Wed Sep 9 22:38:25 PDT 2015
Op 08-09-15 om 15:26 schreef Thierry Reding:
> From: Thierry Reding <treding at nvidia.com>
>
> These functions are like drm_modeset_{,un}lock_all(), but they take the
> lock acquisition context as a parameter rather than storing it in the
> DRM device's drm_mode_config structure.
>
> Implement drm_modeset_{,un}lock_all() in terms of the new function for
> better code reuse, and add a note to the kerneldoc that new code should
> use the new functions.
Looks good, maybe in a release or 2 we'll be able to nuke the old functions so devs have time to convert things over. :-)
This also needs an interruptible counterpart, I think the current non-interruptible locking is a bug.
~Maarten
More information about the dri-devel
mailing list