Oleg Nesterov
93dcf55f82
wait_task_inactive: "improve" the returned value for ->nvcsw == 0
...
wait_task_inactive() returns 1 when p->nvcsw == 0 || p->nvcsw == 1. This
means that two subsequent calls can return the same number while the task
was scheduled in between.
Change the code to return "nvcsw | LONG_MIN" instead of "nvcsw ?: 1", now
the overlap always needs LONG_MAX schedules.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-08-22 15:17:31 +02:00
..
2008-08-12 16:07:30 -07:00
2008-07-26 12:00:04 -07:00
2008-07-31 17:20:29 +02:00
2008-07-28 23:32:00 +02:00
2008-07-25 10:53:47 -07:00
2008-08-01 12:15:16 -04:00
2008-08-01 12:15:03 -04:00
2008-08-04 06:13:50 -04:00
2008-07-24 10:47:22 -07:00
2008-07-30 09:41:44 -07:00
2008-08-12 16:07:28 -07:00
2008-07-30 09:41:44 -07:00
2008-07-25 10:53:47 -07:00
2008-08-07 06:52:01 -07:00
2008-07-26 20:53:20 -04:00
2008-08-01 12:01:11 -07:00
2008-07-28 16:30:21 -07:00
2008-07-15 21:55:59 +02:00
2008-07-25 10:53:27 -07:00
2008-07-28 14:37:38 +02:00
2008-07-26 12:00:04 -07:00
2008-08-01 08:39:35 -05:00
2008-07-25 10:53:28 -07:00
2008-07-25 10:53:30 -07:00
2008-07-26 12:00:09 -07:00
2008-08-11 09:30:23 +02:00
2008-08-11 09:30:26 +02:00
2008-08-11 22:45:51 +02:00
2008-07-29 00:07:55 +02:00
2008-07-30 09:41:45 -07:00
2008-08-12 17:52:54 +10:00
2008-07-28 18:12:36 +02:00
2008-07-25 10:53:37 -07:00
2008-07-25 10:53:37 -07:00
2008-07-25 10:53:29 -07:00
2008-07-25 10:53:47 -07:00
2008-07-25 10:53:45 -07:00
2008-08-05 14:33:50 -07:00
2008-08-11 16:46:11 -07:00
2008-07-30 09:41:45 -07:00
2008-07-25 10:53:27 -07:00
2008-07-26 12:00:09 -07:00
2008-07-28 12:16:31 +10:00
2008-07-15 14:12:03 -07:00
2008-07-16 00:29:07 +02:00
2008-08-05 14:33:46 -07:00
2008-07-25 10:53:36 -07:00
2008-07-30 09:41:43 -07:00
2008-07-21 21:55:02 -07:00
2008-08-11 08:59:03 +02:00
2008-08-11 14:49:29 +02:00
2008-08-11 09:30:22 +02:00
2008-08-22 15:17:31 +02:00
2008-08-05 14:33:47 -07:00
2008-08-11 16:46:11 -07:00
2008-08-12 11:21:27 +02:00
2008-07-26 12:00:04 -07:00
2008-07-26 12:00:04 -07:00
2008-08-11 09:30:24 +02:00
2008-08-12 17:52:55 +10:00
2008-07-25 11:35:41 -07:00
2008-07-26 12:00:04 -07:00
2008-07-25 10:53:45 -07:00
2008-07-27 09:45:34 -07:00
2008-07-25 10:53:47 -07:00
2008-07-14 16:06:58 -07:00
2008-07-27 16:12:28 -07:00
2008-08-12 00:11:49 +02:00