mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-04 04:02:26 +00:00
drm/atomic: Call ww_acquire_done after drm_modeset_lock_all
After we acquired all generic modeset locks in drm_modeset_lock_all, it's unsafe acquire any other so just mark acquisition as done. Atomic drivers shouldn't use drm_modeset_lock_all. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180221152331.9212-1-maarten.lankhorst@linux.intel.com Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Harry Wentland <harry.wentland@amd.com>
This commit is contained in:
parent
c8624ede3e
commit
5fcdc9d981
@ -113,6 +113,7 @@ void drm_modeset_lock_all(struct drm_device *dev)
|
||||
kfree(ctx);
|
||||
return;
|
||||
}
|
||||
ww_acquire_done(&ctx->ww_ctx);
|
||||
|
||||
WARN_ON(config->acquire_ctx);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user