Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1359709
| From | Anna-Maria Gleixner <anna-maria@linutronix.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | rcutorture: Consider FROZEN hotplug notifier transitions |
| Date | 2016-03-17 11:20 +0100 |
| Message-ID | <rdDc6-65q-19@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
The hotplug notifier rcutorture_cpu_notify() doesn't consider the
corresponding CPU_XXX_FROZEN transitions. They occure on
suspend/resume and are usually handled the same way as the
corresponding non frozen transitions.
Mask the switch case action argument with '~CPU_TASKS_FROZEN' to map
CPU_XXX_FROZEN hotplug transitions on corresponding non frozen
transitions.
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
---
kernel/rcu/rcutorture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/kernel/rcu/rcutorture.c
+++ b/kernel/rcu/rcutorture.c
@@ -1598,7 +1598,7 @@ static int rcutorture_cpu_notify(struct
{
long cpu = (long)hcpu;
- switch (action) {
+ switch (action & ~CPU_TASKS_FROZEN) {
case CPU_ONLINE:
case CPU_DOWN_FAILED:
(void)rcutorture_booster_init(cpu);
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
rcutorture: Consider FROZEN hotplug notifier transitions Anna-Maria Gleixner <anna-maria@linutronix.de> - 2016-03-17 11:20 +0100 Re: rcutorture: Consider FROZEN hotplug notifier transitions "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-03-17 16:10 +0100
csiph-web