Thread (10 messages) 10 messages, 2 authors, 2022-09-28

Re: [PATCH v3 6/6] freezer,sched: Rewrite core freezer logic

From: Christian Borntraeger <borntraeger@linux.ibm.com>
Date: 2022-09-26 14:56:02
Also in: linux-pm, lkml

Possibly related (same subject, not in this thread)


Am 26.09.22 um 14:55 schrieb Peter Zijlstra:
quoted hunk ↗ jump to hunk
Could you please test with something like the below on? I can boot that
with KVM, but obviously I didn't suffer any weirdness to begin with :/

---
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 4e6a6417211f..ef9ccfc3a8c0 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -4051,6 +4051,8 @@ try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags)
  	unsigned long flags;
  	int cpu, success = 0;
  
+	WARN_ON_ONCE(state & TASK_FREEZABLE);
+
  	preempt_disable();
  	if (p == current) {
  		/*
Does not seem to trigger.
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help