Re: [PATCH 1/2] add task migration_disable critical section

2008-02-12 Thread Gregory Haskins
>>> On Tue, Feb 12, 2008 at 2:22 PM, in message <[EMAIL PROTECTED]>, Steven Rostedt <[EMAIL PROTECTED]> wrote: > On Tue, 12 Feb 2008, Gregory Haskins wrote: > >> This patch adds a new critical-section primitive pair: >> >> "migration_disable()" and "migration_enable()" > > This is similar to w

Re: [PATCH 1/2] add task migration_disable critical section

2008-02-12 Thread Steven Rostedt
On Tue, 12 Feb 2008, Gregory Haskins wrote: > This patch adds a new critical-section primitive pair: > > "migration_disable()" and "migration_enable()" This is similar to what Mathieu once posted: http://lkml.org/lkml/2007/7/11/13 Not sure the arguments against (no time to read the thread agai

[PATCH 1/2] add task migration_disable critical section

2008-02-12 Thread Gregory Haskins
This patch adds a new critical-section primitive pair: "migration_disable()" and "migration_enable()" This allows you to force a task to remain on the current cpu, while still remaining fully preemptible. This is a better alternative to modifying current->cpus_allowed because you dont have to wo