Searched hist:e739f98b4b11337a4e3865364b8922a9e5ad32b6 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/kernel/irq/ |
H A D | manage.c | diff e739f98b4b11337a4e3865364b8922a9e5ad32b6 Tue Nov 10 05:38:48 CST 2020 Thomas Gleixner <tglx@linutronix.de> genirq: Move prio assignment into the newly created thread
With enabled threaded interrupts the nouveau driver reported the following:
| Chain exists of: | &mm->mmap_lock#2 --> &device->mutex --> &cpuset_rwsem | | Possible unsafe locking scenario: | | CPU0 CPU1 | ---- ---- | lock(&cpuset_rwsem); | lock(&device->mutex); | lock(&cpuset_rwsem); | lock(&mm->mmap_lock#2);
The device->mutex is nvkm_device::mutex.
Unblocking the lockchain at `cpuset_rwsem' is probably the easiest thing to do. Move the priority assignment to the start of the newly created thread.
Fixes: 710da3c8ea7df ("sched/core: Prevent race condition between cpuset and __sched_setscheduler()") Reported-by: Mike Galbraith <efault@gmx.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> [bigeasy: Patch description] Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/a23a826af7c108ea5651e73b8fbae5e653f16e86.camel@gmx.de
|