aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorChen Yucong <[email protected]>2014-05-22 18:54:15 +0000
committerLinus Torvalds <[email protected]>2014-05-23 16:37:29 +0000
commitb985194c8c0a130ed155b71662e39f7eaea4876f (patch)
tree8fd7a95f8da83ddbc0c12d919cd86a2c64f74489 /drivers/net/xen-netback/interface.c
parentLinux 3.15-rc6 (diff)
downloadkernel-b985194c8c0a130ed155b71662e39f7eaea4876f.tar.gz
kernel-b985194c8c0a130ed155b71662e39f7eaea4876f.zip
hwpoison, hugetlb: lock_page/unlock_page does not match for handling a free hugepage
For handling a free hugepage in memory failure, the race will happen if another thread hwpoisoned this hugepage concurrently. So we need to check PageHWPoison instead of !PageHWPoison. If hwpoison_filter(p) returns true or a race happens, then we need to unlock_page(hpage). Signed-off-by: Chen Yucong <[email protected]> Reviewed-by: Naoya Horiguchi <[email protected]> Tested-by: Naoya Horiguchi <[email protected]> Reviewed-by: Andi Kleen <[email protected]> Cc: <[email protected]> [2.6.36+] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions