Oleg Nesterov
57a059187d
exit: reparent: cleanup the changing of ->parent
...
1. Cosmetic, but "if (t->parent == father)" looks a bit confusing.
We need to change t->parent if and only if t is not traced.
2. If we actually want this BUG_ON() to ensure that parent/ptrace
match each other, then we should also take ptrace_reparented()
case into account too.
3. Change this code to use for_each_thread() instead of deprecated
while_each_thread().
[dan.carpenter@oracle.com: silence a bogus static checker warning]
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Aaron Tomlin <atomlin@redhat.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>,
Cc: Sterling Alexander <stalexan@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Roland McGrath <roland@hack.frob.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-12-10 17:41:10 -08:00
..
2014-10-27 19:09:59 -04:00
2014-08-08 16:30:24 -07:00
2014-10-14 02:18:25 +02:00
2014-12-09 20:55:37 -08:00
2014-10-29 16:33:14 -07:00
2014-12-10 09:01:01 -08:00
2014-10-28 10:55:08 +01:00
2014-11-08 22:30:05 +01:00
2014-10-15 07:48:18 +02:00
2014-11-13 10:39:04 -08:00
2014-12-10 17:41:09 -08:00
2014-12-10 10:13:28 -08:00
2014-11-10 16:47:31 -05:00
2013-12-10 18:21:34 +00:00
2014-10-09 22:26:04 -04:00
2014-10-09 22:26:04 -04:00
2014-11-11 14:20:22 -05:00
2014-09-23 16:37:53 -04:00
2014-12-09 21:21:34 -08:00
2014-09-23 16:37:51 -04:00
2014-10-19 16:25:56 -07:00
2014-10-19 16:25:56 -07:00
2014-06-04 16:54:14 -07:00
2014-08-08 15:57:18 -07:00
2014-07-24 21:53:47 +10:00
2014-07-15 11:05:09 -04:00
2014-10-10 07:26:02 -04:00
2014-09-06 12:58:18 +02:00
2014-10-28 10:46:05 +01:00
2014-11-03 19:21:01 -08:00
2014-10-28 10:48:00 +01:00
2014-08-25 15:42:19 -07:00
2014-07-23 10:18:06 -07:00
2013-11-09 00:16:23 -05:00
2014-06-04 16:54:15 -07:00
2014-12-10 17:41:10 -08:00
2014-02-13 18:13:22 -08:00
2014-10-29 10:07:18 -07:00
2014-10-21 23:44:20 +02:00
2014-02-02 14:09:12 -08:00
2014-10-26 16:16:18 +01:00
2014-04-03 16:21:05 -07:00
2014-06-04 16:54:15 -07:00
2014-10-15 07:48:18 +02:00
2013-10-19 19:45:35 -04:00
2014-10-14 02:18:16 +02:00
2014-09-10 15:42:12 -07:00
2013-11-15 09:32:22 +09:00
2014-07-16 14:57:13 +02:00
2014-10-14 02:18:21 +02:00
2014-10-29 16:33:14 -07:00
2014-08-08 10:38:04 +02:00
2014-04-25 12:00:49 -07:00
2014-10-09 22:25:51 -04:00
2014-06-04 16:54:15 -07:00
2014-12-10 17:41:04 -08:00
2013-10-25 17:15:18 -04:00
2013-09-25 17:17:01 +01:00
2014-10-28 10:56:30 +01:00
2014-04-24 10:26:39 +02:00
2014-07-29 18:08:50 -07:00
2013-12-05 21:28:42 +08:00
2014-11-13 16:17:06 -08:00
2014-10-14 02:18:28 +02:00
2014-04-02 16:20:21 -07:00
2013-09-30 14:31:03 -07:00
2014-06-06 16:08:13 -07:00
2014-07-16 15:10:39 +02:00
2014-09-26 00:00:06 -07:00
2014-04-12 14:49:50 -07:00
2014-10-14 02:18:22 +02:00
2014-10-14 02:27:06 +02:00
2014-12-10 09:34:43 -08:00
2014-10-15 07:48:18 +02:00
2014-10-28 10:56:24 +01:00
2014-11-03 19:20:34 -08:00
2014-06-04 16:54:15 -07:00
2014-10-08 21:40:54 -04:00
2014-11-18 00:58:53 +01:00
2014-10-07 20:39:25 -04:00
2014-10-28 10:46:04 +01:00
2013-12-10 18:25:28 +00:00
2014-07-17 09:35:17 -04:00
2013-09-11 15:58:27 -07:00
2014-08-26 13:45:45 -04:00
2014-08-08 15:57:18 -07:00
2014-09-16 13:41:06 -07:00
2014-06-21 00:15:26 -04:00
2014-07-23 10:18:05 -07:00
2014-02-24 14:47:15 -08:00
2014-08-08 15:57:22 -07:00
2014-08-26 13:45:45 -04:00
2014-06-04 16:54:16 -07:00
2014-06-06 16:08:16 -07:00
2014-07-29 18:08:50 -07:00
2014-10-15 07:48:18 +02:00
2014-05-20 10:59:32 -04:00
2014-10-06 05:58:26 -07:00