]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use tasklet_unlock_spin_wait() in __tasklet_disable_sync_once()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 23 Mar 2021 09:22:21 +0000 (10:22 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 25 Mar 2021 17:21:03 +0000 (18:21 +0100)
commite4f6c736d6a25c58d4aaa017811af17db5752441
tree0908cb2091d706cba088d9d2ec88f5aea3b955b1
parentfa5bfd1c6a57aed8ed916f8671bb964127133702
drm/i915: Use tasklet_unlock_spin_wait() in __tasklet_disable_sync_once()

The i915 driver has its own tasklet interface which was overseen in the
tasklet rework. __tasklet_disable_sync_once() is a wrapper around
tasklet_unlock_wait(). tasklet_unlock_wait() might sleep, but the i915
wrappers invokes it from non-preemtible contexts with bottom halves disabled.

Use tasklet_unlock_spin_wait() instead which can be invoked from
non-preemptible contexts.

Fixes: ca418144a2ab5 ("tasklets: Replace spin wait in tasklet_unlock_wait()")
Reported-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210323092221.awq7g5b2muzypjw3@flow
drivers/gpu/drm/i915/i915_gem.h