From: Oleg Nesterov Date: Fri, 29 Sep 2006 09:00:25 +0000 (-0700) Subject: [PATCH] elf_fdpic_core_dump: don't take tasklist_lock X-Git-Tag: v2.6.19-rc1~747 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bce9a234ce7d8dddbfcec28e37ea58b5d8f6003d;p=pandora-kernel.git [PATCH] elf_fdpic_core_dump: don't take tasklist_lock do_each_thread() is rcu-safe, and all tasks which use this ->mm must sleep in wait_for_completion(&mm->core_done) at this point, so we can use RCU locks. Also, remove unneeded INIT_LIST_HEAD(new) before list_add(new, head). Signed-off-by: Oleg Nesterov Acked-By: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed