Commit 8c26bee7 authored by Zheng Zucheng's avatar Zheng Zucheng
Browse files

sched: Replace WARN_ON_ONCE to printk_deferred_once

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/IBHFLI



--------------------------------

AA deadlock may occur when WARN_ON_ONCE() is invoked in the scheduler, so
replace WARN_ON_ONCE() to printk_deferred_once()

Fixes: 45fb4e58 ("sched/all: Change all BUG_ON() instances in the scheduler to WARN_ON_ONCE()")
Signed-off-by: default avatarZheng Zucheng <zhengzucheng@huawei.com>
parent d363ef66
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -762,7 +762,10 @@ static void __disable_runtime(struct rq *rq)
		 * We cannot be left wanting - that would mean some runtime
		 * leaked out of the system.
		 */
		WARN_ON_ONCE(want);
		if (unlikely(want != 0))
			printk_deferred_once(KERN_WARNING
				"WARNING: runtime leaks possible want=%lld cpu=%d\n",
				want, cpu_of(rq));
balanced:
		/*
		 * Disable all the borrow logic by marking runtime disabled.