mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mm: migrate: hugetlb: putback destination hugepage to active list
Since commitbcc5422230("mm: hugetlb: introduce page_huge_active") each hugetlb page maintains its active flag to avoid a race condition betwe= en multiple calls of isolate_huge_page(), but current kernel doesn't set the f= lag on a hugepage allocated by migration because the proper putback routine isn= 't called. This means that users could still encounter the race referred to bybcc5422230in this special case, so this patch fixes it. Fixes:bcc5422230("mm: hugetlb: introduce page_huge_active") Signed-off-by: Naoya Horiguchi <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: <[email protected]> [4.1.x] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
8a04446ab0
commit
3aaa76e125
1 changed files with 1 additions and 1 deletions
|
|
@ -1075,7 +1075,7 @@ out:
|
|||
if (rc != MIGRATEPAGE_SUCCESS && put_new_page)
|
||||
put_new_page(new_hpage, private);
|
||||
else
|
||||
put_page(new_hpage);
|
||||
putback_active_hugepage(new_hpage);
|
||||
|
||||
if (result) {
|
||||
if (rc)
|
||||
|
|
|
|||
Loading…
Reference in a new issue