Files
linux-legacy/include/linux
Paul Menage 8707d8b8c0 Fix cpusets update_cpumask
Cause writes to cpuset "cpus" file to update cpus_allowed for member tasks:

- collect batches of tasks under tasklist_lock and then call
  set_cpus_allowed() on them outside the lock (since this can sleep).

- add a simple generic priority heap type to allow efficient collection
  of batches of tasks to be processed without duplicating or missing any
  tasks in subsequent batches.

- make "cpus" file update a no-op if the mask hasn't changed

- fix race between update_cpumask() and sched_setaffinity() by making
  sched_setaffinity() post-check that it's not running on any cpus outside
  cpuset_cpus_allowed().

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Paul Menage <menage@google.com>
Cc: Paul Jackson <pj@sgi.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-19 11:53:41 -07:00
..
…
…
…
…
2007-10-09 19:59:16 -07:00
2007-10-17 22:51:13 +02:00
2007-10-17 08:43:03 -07:00
…
2007-10-10 16:53:11 -07:00
2007-10-15 17:56:36 -07:00
…
…
…
…
…
…
…
2007-10-18 14:37:20 -07:00
…
2007-10-10 16:51:59 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-10-10 16:49:02 -07:00
…
…
…
2007-10-17 08:42:45 -07:00
…
…
…
2007-10-17 08:43:07 -07:00
2007-10-18 14:37:29 -07:00
…
2007-10-16 09:43:09 -07:00
…
…
…
…
2007-10-16 09:42:58 -07:00
…
…
…
…
…
…
…
…
2007-10-19 11:53:36 -07:00
2007-10-19 11:53:36 -07:00
…
…
…
…
…
…
…
2007-10-16 09:43:13 -07:00
2007-10-17 08:42:52 -07:00
…
…
…
…
…
…
…
…
…
…
2007-10-16 09:43:09 -07:00
…
…
2007-10-19 11:53:36 -07:00
…
…
…
…
…
2007-10-18 14:37:21 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-10-17 08:42:51 -07:00
…
…
…
…
…
2007-10-17 08:43:02 -07:00
2007-10-17 08:43:02 -07:00
2007-10-17 08:42:48 -07:00
…
…
2007-10-17 08:43:01 -07:00
…
…
…
…
…
2007-10-18 14:37:31 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-10-13 23:56:33 +02:00
…
2007-10-16 11:21:00 +02:00
…
…
…
…
2007-10-19 00:30:11 +02:00
…
…
2007-10-10 16:51:59 -07:00
…
…
…
2007-10-17 08:42:52 -07:00
…
…
…
2007-10-10 16:52:04 -07:00
…
…
…
…
…
…
2007-10-14 12:41:52 -07:00
…
…
…
…
…
…
…
2007-10-16 09:43:01 -07:00
…
…
2007-10-17 08:42:55 -07:00
2007-10-18 14:37:32 -07:00
2007-10-18 14:37:32 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
2007-10-16 09:42:49 -07:00
2007-10-17 08:42:52 -07:00
2007-10-19 11:53:36 -07:00
2007-10-17 08:42:52 -07:00
…
…
2007-10-17 08:43:01 -07:00
…
…
…
…
…
2007-10-12 14:51:12 -07:00
2007-10-16 09:43:10 -07:00
…
…
…
2007-10-13 10:18:29 +02:00
…
…
…
…
…
2007-10-18 16:21:18 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-10-10 16:54:03 -07:00
…
…
…
…
…
2007-10-17 08:42:55 -07:00
…
…
2007-10-17 08:42:50 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-10-17 08:42:58 -07:00
…
…
2007-10-19 11:53:34 -07:00
…
…
…
…
2007-10-16 09:43:02 -07:00
…
…
2007-10-18 14:37:23 -07:00
…
2007-10-16 09:43:09 -07:00
2007-10-17 08:42:44 -07:00
…
…
…
…
…
2007-10-19 11:53:41 -07:00
…
…
…
…
2007-10-17 08:43:04 -07:00
…
…
…
…
…
2007-10-19 11:53:41 -07:00
2007-10-17 08:42:45 -07:00
…
…
…
2007-10-17 08:42:56 -07:00
2007-10-16 09:42:53 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-10-19 11:53:41 -07:00
…
…
…
2007-10-16 09:43:17 -07:00
…
…
…
2007-10-16 09:42:50 -07:00
…
…
…
2007-10-17 08:42:47 -07:00
…
2007-10-17 08:43:01 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-10-18 14:37:23 -07:00
…
2007-10-12 14:51:12 -07:00
…
…
…
2007-10-15 12:59:43 -07:00
…
…
…
…
…
…
2007-10-17 08:42:53 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-10-17 08:42:56 -07:00
2007-10-19 11:53:34 -07:00
…
2007-10-17 08:43:02 -07:00
…
…
…
…
…
…
…