Oleg Nesterov
f31e11d87a
wait_task_inactive(): don't consider task->nivcsw
...
If wait_task_inactive() returns success the task was deactivated. In that
case schedule() always increments ->nvcsw which alone can be used as a
"generation counter".
If the next call returns the same number, we can be sure that the task was
unscheduled. Otherwise, because we know that .on_rq == 0 again, ->nvcsw
should have been changed in between.
Q: perhaps it is better to do "ncsw = (p->nvcsw << 1) | 1" ? This
decreases the possibility of "was it unscheduled" false positive when
->nvcsw == 0.
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:29 +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-05-17 03:30:23 -04:00
2008-08-01 12:15:16 -04:00
2008-04-28 06:28:04 -04:00
2008-08-01 12:15:03 -04:00
2008-08-04 06:13:50 -04:00
2008-06-27 18:09:16 +02:00
2008-04-29 08:06:29 -07:00
2008-07-24 10:47:22 -07:00
2008-04-29 08:06:09 -07:00
2008-07-30 09:41:44 -07:00
2008-05-01 08:03:59 -07:00
2008-04-29 08:06:22 -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-04-29 08:06:22 -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-03-30 14:18:41 -07:00
2008-06-23 13:31:15 +02: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-03-10 18:01:20 -07: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-04-29 08:06:22 -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-05-16 16:53:35 +02:00
2008-07-28 18:12:36 +02:00
2008-04-29 08:06:13 -07: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-05-24 18:49:22 +02: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-05-19 10:03:39 +02:00
2008-07-16 00:29:07 +02:00
2008-06-26 09:24:33 +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-06-06 15:19:28 +02:00
2008-06-06 15:19:44 +02:00
2008-06-27 14:31:31 +02:00
2008-08-11 14:49:29 +02:00
2008-06-27 14:31:47 +02:00
2008-05-05 23:56:17 +02:00
2008-08-11 09:30:22 +02:00
2008-07-04 12:50:23 +02:00
2008-08-22 15:17:29 +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-06-30 09:20:55 +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-05-02 16:18:42 -07:00
2008-05-02 16:18:42 -07:00
2008-07-14 16:06:58 -07:00
2008-07-27 16:12:28 -07:00
2008-04-10 17:28:26 -07:00
2008-04-29 08:06:07 -07:00
2008-04-30 08:29:53 -07:00
2008-04-29 08:06:04 -07:00
2008-08-12 00:11:49 +02:00