]> git.baikalelectronics.ru Git - kernel.git/commit
thp: put_page: recheck PageHead after releasing the compound_lock
authorAndrea Arcangeli <aarcange@redhat.com>
Thu, 13 Jan 2011 23:46:33 +0000 (15:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:39 +0000 (17:32 -0800)
commit62655ddac8532bedd27986439b029b210ce59b11
tree35f10c2a8d2cd0e1aa9d33f7a4f55332c0733ee6
parent54291be9aa84caecc9a2adc1fe7648d706e7442d
thp: put_page: recheck PageHead after releasing the compound_lock

After releasing the compound_lock split_huge_page can still run and release the
page before put_page_testzero runs.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/swap.c