diff options
author | Dean Nelson <dnelson@redhat.com> | 2010-12-02 23:31:12 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-12-02 23:51:14 +0100 |
commit | 1f64d69c7ad2e48e697493e45590679f7a69b7b2 (patch) | |
tree | 62e6c3d1dd31e1f87992710cde6b0b905f482606 /mm/mempolicy.c | |
parent | Merge branch 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
download | linux-1f64d69c7ad2e48e697493e45590679f7a69b7b2.tar.xz linux-1f64d69c7ad2e48e697493e45590679f7a69b7b2.zip |
mm/hugetlb.c: avoid double unlock_page() in hugetlb_fault()
Have hugetlb_fault() call unlock_page(page) only if it had previously
called lock_page(page).
Setting CONFIG_DEBUG_VM=y and then running the libhugetlbfs test suite,
resulted in the tripping of VM_BUG_ON(!PageLocked(page)) in
unlock_page() having been called by hugetlb_fault() when page ==
pagecache_page. This patch remedied the problem.
Signed-off-by: Dean Nelson <dnelson@redhat.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mempolicy.c')
0 files changed, 0 insertions, 0 deletions