From: Anton Vorontsov Date: Mon, 6 Feb 2012 16:29:41 +0000 (+0400) Subject: staging: android/lowmemorykiller: Don't grab tasklist_lock X-Git-Tag: v3.4-rc1~186^2~176^2~160 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=294b27119f2e20643e71a0c1a1b511320a11e4c3;p=pandora-kernel.git staging: android/lowmemorykiller: Don't grab tasklist_lock Grabbing tasklist_lock has its disadvantages, i.e. it blocks process creation and destruction. If there are lots of processes, blocking doesn't sound as a great idea. For LMK, it is sufficient to surround tasks list traverse with rcu_read_{,un}lock(). >From now on using force_sig() is not safe, as it can race with an already exiting task, so we use send_sig() now. As a downside, it won't kill PID namespace init processes, but that's not what we want anyway. Suggested-by: Oleg Nesterov Signed-off-by: Anton Vorontsov Reviewed-by: Oleg Nesterov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed