]> 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>
Fri, 28 Sep 2012 00:19:17 +0000 (10:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Oct 2012 05:03:15 +0000 (15:03 +1000)
commit08e7fde1ec9d14acfbb0e98b6f428c1ed8b83f13
treef6023fdfc9e3c443a8cf32faf1d7ff67e4584359
parent580247557a92dd2df0408c3462ccc5f2a104a37f
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