All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RT] sched: Do not clear PF_NO_SETAFFINITY flag in select_fallback_rq()
@ 2014-07-01 15:14 Steven Rostedt
  2015-02-17  9:37 ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Rostedt @ 2014-07-01 15:14 UTC (permalink / raw)
  To: LKML, linux-rt-users
  Cc: Thomas Gleixner, Sebastian Andrzej Siewior, Clark Williams,
	Peter Zijlstra, stable-rt


I talked with Peter Zijlstra about this, and he told me that the clearing
of the PF_NO_SETAFFINITY flag was to deal with the optimization of
migrate_disable/enable() that ignores tasks that have that flag set. But
that optimization was removed when I did a rework of the cpu hotplug code.

I found that ignoring tasks that had that flag set would cause those tasks
to not sync with the hotplug code and cause the kernel to crash. Thus it
needed to not treat them special and those tasks had to go though the same
work as tasks without that flag set.

Now that those tasks are not treated special, there's no reason to clear the
flag.

May still need to be tested as the migrate_me() code does not ignore those
flags.

Cc: stable-rt@vger.kernel.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index ce80b93..352239e 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -1393,12 +1393,6 @@ out:
 		}
 	}
 
-	/*
-	 * Clear PF_NO_SETAFFINITY, otherwise we wreckage
-	 * migrate_disable/enable. See optimization for
-	 * PF_NO_SETAFFINITY tasks there.
-	 */
-	p->flags &= ~PF_NO_SETAFFINITY;
 	return dest_cpu;
 }
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH RT] sched: Do not clear PF_NO_SETAFFINITY flag in select_fallback_rq()
  2014-07-01 15:14 [PATCH RT] sched: Do not clear PF_NO_SETAFFINITY flag in select_fallback_rq() Steven Rostedt
@ 2015-02-17  9:37 ` Sebastian Andrzej Siewior
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Andrzej Siewior @ 2015-02-17  9:37 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: LKML, linux-rt-users, Thomas Gleixner, Clark Williams,
	Peter Zijlstra, stable-rt

* Steven Rostedt | 2014-07-01 11:14:44 [-0400]:

>I talked with Peter Zijlstra about this, and he told me that the clearing
>of the PF_NO_SETAFFINITY flag was to deal with the optimization of
>migrate_disable/enable() that ignores tasks that have that flag set. But
>that optimization was removed when I did a rework of the cpu hotplug code.

This has been already applied. You took it into v3.14 and while applying
the latest v3.14 patches it made its way into v3.18 as well.

Sebastian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-17  9:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-01 15:14 [PATCH RT] sched: Do not clear PF_NO_SETAFFINITY flag in select_fallback_rq() Steven Rostedt
2015-02-17  9:37 ` Sebastian Andrzej Siewior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.