Anton Blanchard
84fba5ec91
sched: Fix sched_getaffinity()
...
taskset on 2.6.34-rc3 fails on one of my ppc64 test boxes with
the following error:
sched_getaffinity(0, 16, 0x10029650030) = -1 EINVAL (Invalid argument)
This box has 128 threads and 16 bytes is enough to cover it.
Commit cd3d8031eb4311e516329aee03c79a08333141f1 (sched:
sched_getaffinity(): Allow less than NR_CPUS length) is
comparing this 16 bytes agains nr_cpu_ids.
Fix it by comparing nr_cpu_ids to the number of bits in the
cpumask we pass in.
Signed-off-by: Anton Blanchard <anton@samba.org>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Sharyathi Nagesh <sharyath@in.ibm.com>
Cc: Ulrich Drepper <drepper@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Jack Steiner <steiner@sgi.com>
Cc: Russ Anderson <rja@sgi.com>
Cc: Mike Travis <travis@sgi.com>
LKML-Reference: <20100406070218.GM5594@kryten>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2010-04-06 10:01:35 +02:00
..
2009-09-21 14:29:21 +02:00
2010-03-26 15:09:06 -07:00
2010-03-26 23:51:44 +01:00
2010-03-23 16:41:01 +01:00
2010-04-04 12:13:10 -07:00
2010-03-12 15:52:39 -08:00
2009-06-08 12:31:53 -07:00
2010-03-03 14:07:57 -05:00
2009-09-24 03:50:25 -04:00
2010-02-05 12:22:30 +01:00
2009-06-24 00:02:38 -04:00
2009-06-24 00:00:52 -04:00
2010-02-08 14:38:36 -05:00
2009-12-12 13:08:14 +01:00
2009-12-10 09:42:48 +11:00
2010-03-26 23:51:44 +01:00
2010-03-24 16:31:19 -07:00
2009-04-30 19:24:24 +02:00
2010-03-06 11:26:28 -08:00
2010-03-24 16:31:21 -07:00
2008-11-14 10:39:23 +11:00
2010-03-30 17:15:38 +11:00
2009-09-18 09:48:52 -07:00
2010-03-29 18:55:40 +02:00
2010-03-06 11:26:46 -08:00
2009-03-31 23:00:27 -04:00
2010-03-13 14:43:01 -08:00
2009-04-05 11:04:19 -07:00
2010-03-13 14:43:01 -08:00
2009-07-18 14:19:53 +02:00
2009-12-09 14:22:14 +01:00
2010-02-03 15:13:22 +01:00
2009-06-16 19:47:48 -07:00
2009-12-14 23:55:34 +01:00
2009-11-27 06:21:57 +01:00
2010-03-04 11:47:52 +01:00
2009-11-18 16:32:12 +01:00
2009-11-10 11:23:29 +01:00
2009-12-03 11:50:11 +01:00
2008-12-25 09:31:28 +01:00
2010-02-17 11:17:38 +09:00
2010-02-16 15:11:08 -08:00
2010-04-02 14:58:19 -05:00
2010-01-11 09:34:04 -08:00
2010-03-11 14:06:16 +01:00
2010-03-08 16:55:37 +01:00
2010-03-24 16:31:21 -07:00
2009-02-11 10:18:04 +01:00
2009-07-24 10:53:29 +02:00
2009-09-23 07:39:29 -07:00
2009-02-14 23:27:59 +01:00
2010-03-18 16:52:46 -07:00
2010-03-06 11:26:45 -08:00
2010-03-07 17:04:51 -08:00
2009-10-11 11:20:58 -07:00
2009-12-14 23:55:32 +01:00
2009-12-03 11:50:11 +01:00
2009-01-14 18:09:02 +01:00
2010-02-25 10:34:26 +01:00
2009-09-24 07:20:58 -07:00
2010-03-12 15:52:40 -08:00
2010-03-04 13:30:22 +08:00
2010-03-06 11:26:33 -08:00
2010-03-12 16:04:50 -08:00
2010-04-03 12:22:05 +02:00
2010-03-12 15:52:40 -08:00
2010-03-13 14:43:01 -08:00
2009-10-14 15:31:10 +02:00
2010-03-26 15:10:38 -07:00
2010-02-05 14:54:10 +01:00
2010-03-06 11:26:33 -08:00
2009-09-20 20:15:40 +02:00
2010-02-23 13:45:26 -08:00
2010-02-10 17:47:17 -08:00
2010-03-16 09:57:49 +01:00
2009-11-22 18:58:16 +01:00
2010-03-03 07:34:18 -08:00
2010-02-28 09:17:42 +01:00
2010-02-25 10:34:57 +01:00
2010-02-27 09:53:52 +01:00
2010-03-11 13:38:01 +01:00
2010-03-06 11:26:32 -08:00
2009-10-01 16:11:13 -07:00
2010-03-23 13:33:50 -07:00
2009-04-06 11:14:02 +02:00
2009-12-14 23:55:33 +01:00
2009-12-14 23:55:33 +01:00
2009-12-15 09:04:36 +01:00
2010-03-08 16:55:37 +01:00
2009-12-14 23:55:33 +01:00
2010-04-02 20:06:40 +02:00
2010-03-01 09:29:58 +01:00
2009-12-09 10:03:07 +01:00
2010-01-21 13:40:09 +01:00
2010-03-13 14:46:18 -08:00
2009-03-24 23:16:51 +01:00
2010-04-06 10:01:35 +02:00
2009-03-02 15:41:30 -08:00
2010-03-06 11:26:33 -08:00
2009-12-01 08:20:31 -08:00
2010-03-29 09:13:30 -07:00
2010-03-29 09:14:47 -07:00
2010-01-18 09:02:59 +01:00
2010-02-03 18:17:40 +01:00
2010-03-21 19:30:13 +01:00
2009-12-14 23:55:33 +01:00
2010-02-25 09:40:59 +01:00
2008-12-25 11:44:43 +01:00
2010-02-17 11:17:38 +09:00
2010-03-12 15:52:32 -08:00
2010-03-12 15:52:32 -08:00
2010-03-03 13:00:21 -05:00
2009-12-03 12:14:38 -08:00
2010-03-12 15:53:10 -08:00
2010-02-18 14:30:18 -08:00
2009-01-06 15:59:20 -08:00
2009-12-22 14:10:37 -08:00
2010-03-12 19:11:29 +01:00
2009-09-21 15:14:55 +02:00
2010-03-06 11:26:23 -08:00
2009-09-23 18:13:10 -07:00
2009-01-12 16:04:37 +01:00
2009-02-27 16:26:21 -08:00
2009-12-02 10:22:59 +01:00
2010-01-21 13:40:18 +01:00
2009-11-12 02:04:55 -08:00
2009-06-18 13:03:55 -07:00
2009-08-10 14:43:09 +02:00
2009-12-10 09:35:44 -08:00