diff options
-rw-r--r-- | include/linux/pid.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/pid.h b/include/linux/pid.h index b91f4732dc1b..f84d532b5d23 100644 --- a/include/linux/pid.h +++ b/include/linux/pid.h | |||
@@ -152,7 +152,13 @@ pid_t pid_vnr(struct pid *pid); | |||
152 | hlist_for_each_entry_rcu((task), pos___, \ | 152 | hlist_for_each_entry_rcu((task), pos___, \ |
153 | &pid->tasks[type], pids[type].node) { | 153 | &pid->tasks[type], pids[type].node) { |
154 | 154 | ||
155 | /* | ||
156 | * Both old and new leaders may be attached to | ||
157 | * the same pid in the middle of de_thread(). | ||
158 | */ | ||
155 | #define while_each_pid_task(pid, type, task) \ | 159 | #define while_each_pid_task(pid, type, task) \ |
160 | if (type == PIDTYPE_PID) \ | ||
161 | break; \ | ||
156 | } \ | 162 | } \ |
157 | } while (0) | 163 | } while (0) |
158 | 164 | ||