From: Mel Gorman Date: Wed, 4 Jun 2014 23:10:26 +0000 (-0700) Subject: mm: do not use atomic operations when releasing pages X-Git-Tag: v3.14.31~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d065df14f73b74f173e2540591185a69e0a55749;p=thirdparty%2Fkernel%2Fstable.git mm: do not use atomic operations when releasing pages commit e3741b506c5088fa8c911bb5884c430f770fb49d upstream. 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: Mel Gorman Acked-by: Rik 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: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Mel Gorman Signed-off-by: Greg Kroah-Hartman --- diff --git a/mm/swap.c b/mm/swap.c index d2445819fa585..c370e59245f9f 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -867,7 +867,7 @@ void release_pages(struct page **pages, int nr, bool cold) } /* Clear Active bit in case of parallel mark_page_accessed */ - ClearPageActive(page); + __ClearPageActive(page); list_add(&page->lru, &pages_to_free); }