]> git.baikalelectronics.ru Git - kernel.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)
commit4208b288253b96fb0dce5ae0845f41ba070b2a6e
tree0be82e27070b29827395d5a5e6aefab5c1646be5
parentb39ed37f427c238e1bdb0c0f4fd5b01202952d00
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