mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
Revert "mm: batch activate_page() to reduce lock contention"
This reverts commit744ed14427
. Chris Mason ended up chasing down some page allocation errors and pages stuck waiting on the IO scheduler, and was able to narrow it down to two commits: commit744ed14427
("mm: batch activate_page() to reduce lock contention") andd8505dee1a
("mm: simplify code of swap.c"). This reverts the first of them. Reported-and-debugged-by: Chris Mason <chris.mason@oracle.com> Cc: Mel Gorman <mel@csn.ul.ie> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jens Axboe <jaxboe@fusionio.com> Cc: linux-mm <linux-mm@kvack.org> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Shaohua Li <shaohua.li@intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
9e8a462a01
commit
7a608572a2
3 changed files with 15 additions and 94 deletions
|
@ -1271,16 +1271,14 @@ putback_lru_pages(struct zone *zone, struct scan_control *sc,
|
|||
spin_lock_irq(&zone->lru_lock);
|
||||
continue;
|
||||
}
|
||||
SetPageLRU(page);
|
||||
lru = page_lru(page);
|
||||
add_page_to_lru_list(zone, page, lru);
|
||||
if (is_active_lru(lru)) {
|
||||
int file = is_file_lru(lru);
|
||||
int numpages = hpage_nr_pages(page);
|
||||
reclaim_stat->recent_rotated[file] += numpages;
|
||||
if (putback_active_lru_page(zone, page))
|
||||
continue;
|
||||
}
|
||||
SetPageLRU(page);
|
||||
add_page_to_lru_list(zone, page, lru);
|
||||
if (!pagevec_add(&pvec, page)) {
|
||||
spin_unlock_irq(&zone->lru_lock);
|
||||
__pagevec_release(&pvec);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue