hugetlb: add missing unlock in avoidcopy path in hugetlb_cow()
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Fri, 2 Jul 2010 05:47:20 +0000 (14:47 +0900)
committerAndi Kleen <ak@linux.intel.com>
Wed, 11 Aug 2010 07:23:48 +0000 (09:23 +0200)
commit28957a5467bab9ed51a237d21e31055fad987887
tree1bc0a2bee4744516fb9874e36bbd7eb6cd9020b3
parente3390f67a7267daa227380b6f1bbf13c7ddd4aff
hugetlb: add missing unlock in avoidcopy path in hugetlb_cow()

This patch fixes possible deadlock in hugepage lock_page()
by adding missing unlock_page().

libhugetlbfs test will hit this bug when the next patch in this
patchset ("hugetlb, HWPOISON: move PG_HWPoison bit check") is applied.

Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Acked-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
mm/hugetlb.c