• Mel Gorman's avatar
    mm: vmscan: set zone flags before blocking · f7ab8db7
    Mel Gorman authored
    In shrink_page_list a decision may be made to stall and flag a zone as
    ZONE_WRITEBACK so that if a large number of unqueued dirty pages are
    encountered later then the reclaimer will stall.  Set ZONE_WRITEBACK
    before potentially going to sleep so it is noticed sooner.
    Signed-off-by: default avatarMel Gorman <mgorman@suse.de>
    Cc: Johannes Weiner <hannes@cmpxchg.org>
    Cc: Michal Hocko <mhocko@suse.cz>
    Cc: Rik van Riel <riel@redhat.com>
    Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    Cc: Jiri Slaby <jslaby@suse.cz>
    Cc: Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
    Cc: Zlatko Calusic <zcalusic@bitsync.net>
    Cc: dormando <dormando@rydia.net>
    Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    f7ab8db7
vmscan.c 106 KB