]> git.karo-electronics.de Git - linux-beck.git/commit
staging: android: lowmemorykiller: set TIF_MEMDIE before send kill sig
authorWeijie Yang <weijie.yang@samsung.com>
Fri, 14 Feb 2014 06:03:56 +0000 (14:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2014 17:18:39 +0000 (09:18 -0800)
commit6bc2b856bb7c49f238914d965c0b1057ec78226e
tree0be82e27070b29827395d5a5e6aefab5c1646be5
parent52cf6acfb0a81267848701ad385ec735c0bd61b2
staging: android: lowmemorykiller: set TIF_MEMDIE before send kill sig

Set TIF_MEMDIE tsk_thread flag before send kill signal to the
selected thread. This is to fit a usual code sequence and avoid
potential race issue.

Signed-off-by: Weijie Yang <weijie.yang@samsung.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/lowmemorykiller.c