mm-vmscan-simplify-the-logic-deciding-whether-kswapd-sleeps.patch removed from -mm tree
The patch titled
Subject: mm, vmscan: simplify the logic deciding whether kswapd sleeps
has been removed from the -mm tree. Its filename was
mm-vmscan-simplify-the-logic-deciding-whether-kswapd-sleeps.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Mel Gorman <[email protected]>
Subject: mm, vmscan: simplify the logic deciding whether kswapd sleeps
kswapd goes through some complex steps trying to figure out if it should stay awake based on the classzone_idx and the requested order. It is unnecessarily complex and passes in an invalid classzone_idx to balance_pgdat(). What matters most of all is whether a larger order has been requsted and whether kswapd successfully reclaimed at the previous order. This patch irons out the logic to check just that and the end result is less headache inducing.
---
include/linux/mmzone.h | 5 + mm/memory_hotplug.c | 5 + mm/page_alloc.c | 2 mm/vmscan.c | 103 +++++++++++++++++++-------------------- 4 files changed, 58 insertions(+), 57 deletions(-)
include/linux/mmzone.h renamed from include/linux/mmzone.h~mm-vmscan-simplify-the-logic-deciding-whether-kswapd-sleeps +3 -2
@@ -668,8 +668,9 @@ typedef struct pglist_data {wait_queue_head_t pfmemalloc_wait;struct task_struct *kswapd;/* Protected by mem_hotplug_begin/end() */ -int kswapd_max_order; -enum zone_type classzone_idx; +int kswapd_order; +enum zone_type kswapd_classzone_idx; +#ifdef CONFIG_COMPACTION int kcompactd_max_order;enum zone_type kcompactd_classzone_idx;
mm/memory_hotplug.c renamed from mm/memory_hotplug.c~mm-vmscan-simplify-the-logic-deciding-whether-kswapd-sleeps +3 -2
@@ -1209,9 +1209,10 @@ static pg_data_t __ref *hotadd_new_pgdatarch_refresh_nodedata (nid, pgdat); }else { -/* Reset the nr_zones and classzone_idx to 0 before reuse */ +/* Reset the nr_zones, order and classzone_idx before reuse */ pgdat->nr_zones =0 ; - pgdat->classzone_idx =0 ; + pgdat->kswapd_order =0 ; + pgdat->kswapd_classzone_idx =0 ; }/* we can use NODE_DATA(nid) from here */
mm/page_alloc.c renamed from mm/page_alloc.c~mm-vmscan-simplify-the-logic-deciding-whether-kswapd-sleeps +1 -1
@@ -6039,7 +6039,7 @@ void __paginginit free_area_init_node(inunsigned long end_pfn =0 ;/* pg_data_t should be reset to zero when it's allocated */ -WARN_ON (pgdat->nr_zones || pgdat->classzone_idx); +WARN_ON (pgdat->nr_zones || pgdat->kswapd_classzone_idx);reset_deferred_meminit (pgdat); pgdat->node_id = nid;
mm/vmscan.c renamed from mm/vmscan.c~mm-vmscan-simplify-the-logic-deciding-whether-kswapd-sleeps +51 -52
171 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are