]> git.karo-electronics.de Git - karo-tx-linux.git/commit
thp: remove wake_up_interruptible in the exit path
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Thu, 13 Sep 2012 00:58:39 +0000 (10:58 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Sep 2012 05:30:03 +0000 (15:30 +1000)
commit76cc43ed3a06aba8c76a45b54e2b2ae13cae1c63
tree0a9c611f89526e08d4af804b6695ad77b766079a
parentcf23f199621ec2cb6dfb0934a2290268ddd23728
thp: remove wake_up_interruptible in the exit path

Add the check of kthread_should_stop() to the conditions which are used to
wakeup on khugepaged_wait, then kthread_stop is enough to let the thread
exit

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c