sched/wqueue: fix potential deadlock

sched_unlock() should called after spin_unlock

Signed-off-by: chao an <anchao.archer@bytedance.com>
This commit is contained in:
chao an
2025-01-16 10:07:56 +08:00
committed by Xiang Xiao
parent 8877366c0e
commit 67582acc14
+1 -1
View File
@@ -404,8 +404,8 @@ void work_notifier_signal(enum work_evtype_e evtype,
}
}
sched_unlock();
spin_unlock_irqrestore(&g_notifier_lock, flags);
sched_unlock();
}
#endif /* CONFIG_WQUEUE_NOTIFIER */