]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Don't block the kworker waiting for mode_config.mutex in output_poll()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 6 Dec 2016 11:37:15 +0000 (11:37 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 6 Dec 2016 12:41:15 +0000 (13:41 +0100)
commit20da48ab2ad6275e128fec7ec08e6b1b140e71bc
treed6583207eae0d63583ed099e399cf33652bc5b94
parent9da2366e10b5b5f3441cfd281c76b250077f6021
drm: Don't block the kworker waiting for mode_config.mutex in output_poll()

If we cannot acquire the mode_config.mutex immediately, just back off and
queue a new attempt after the poll interval. This is mostly to stop the
hung task spam when the system is deadlocked, but it will also lessen
the load (in such extreme cases).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
[danvet:s/lock/mutex/ per Eric's comment.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161206113715.30382-1-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_probe_helper.c