]> git.baikalelectronics.ru Git - kernel.git/commit
mm/hugetlb.c: add cond_resched_lock() in return_unused_surplus_pages()
authorMizuma, Masayoshi <m.mizuma@jp.fujitsu.com>
Fri, 18 Apr 2014 22:07:18 +0000 (15:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 18 Apr 2014 23:40:08 +0000 (16:40 -0700)
commitf468a4488e181b396d36e4eb09e9983d5ee1ec24
tree229cc0ba9f40530d043ec153ec688de86249bde0
parent5f62d06e9434a24df19a04fd7931d6c6812e1037
mm/hugetlb.c: add cond_resched_lock() in return_unused_surplus_pages()

soft lockup in freeing gigantic hugepage fixed in commit d3b36f344ded "mm:
hugetlb: fix softlockup when a large number of hugepages are freed." can
happen in return_unused_surplus_pages(), so let's fix it.

Signed-off-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Aneesh Kumar <aneesh.kumar@linux.vnet.ibm.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hugetlb.c