Commit e3741b50 authored by Mel Gorman's avatar Mel Gorman Committed by Linus Torvalds

mm: do not use atomic operations when releasing pages

There should be no references to it any more and a parallel mark should
not be reordered against us.  Use non-locked varient to clear page active.
Signed-off-by: default avatarMel Gorman <>
Acked-by: default avatarRik van Riel <>
Cc: Johannes Weiner <>
Cc: Vlastimil Babka <>
Cc: Jan Kara <>
Cc: Michal Hocko <>
Cc: Hugh Dickins <>
Cc: Dave Hansen <>
Cc: Theodore Ts'o <>
Cc: "Paul E. McKenney" <>
Cc: Oleg Nesterov <>
Cc: Peter Zijlstra <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 07a42788
......@@ -901,7 +901,7 @@ void release_pages(struct page **pages, int nr, bool cold)
/* Clear Active bit in case of parallel mark_page_accessed */
list_add(&page->lru, &pages_to_free);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment