+ call-mm-page-writebackcset_ratelimit-when-new-pages.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     call mm/page-writeback.c:set_ratelimit() when new pages are hot-added

has been added to the -mm tree.  Its filename is

     call-mm-page-writebackcset_ratelimit-when-new-pages.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: call mm/page-writeback.c:set_ratelimit() when new pages are hot-added
From: Chandra Seetharaman <sekharan@xxxxxxxxxx>

ratelimit_pages in page-writeback.c is recalculated (in set_ratelimit())
every time a CPU is hot-added/removed.  But this value is not recalculated
when new pages are hot-added.

This patch fixes that problem by calling set_ratelimit() when new pages
are hot-added.

Signed-off-by: Chandra Seetharaman <sekharan@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 mm/memory_hotplug.c |    2 ++
 mm/page-writeback.c |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff -puN mm/memory_hotplug.c~call-mm-page-writebackcset_ratelimit-when-new-pages mm/memory_hotplug.c
--- a/mm/memory_hotplug.c~call-mm-page-writebackcset_ratelimit-when-new-pages
+++ a/mm/memory_hotplug.c
@@ -168,6 +168,7 @@ int online_pages(unsigned long pfn, unsi
 	unsigned long start_pfn;
 	struct zone *zone;
 	int need_zonelists_rebuild = 0;
+	extern void set_ratelimit(void);
 
 	/*
 	 * This doesn't need a lock to do pfn_to_page().
@@ -218,6 +219,7 @@ int online_pages(unsigned long pfn, unsi
 	if (need_zonelists_rebuild)
 		build_all_zonelists();
 	vm_total_pages = nr_free_pagecache_pages();
+	set_ratelimit();
 	return 0;
 }
 #endif /* CONFIG_MEMORY_HOTPLUG_SPARSE */
diff -puN mm/page-writeback.c~call-mm-page-writebackcset_ratelimit-when-new-pages mm/page-writeback.c
--- a/mm/page-writeback.c~call-mm-page-writebackcset_ratelimit-when-new-pages
+++ a/mm/page-writeback.c
@@ -501,7 +501,7 @@ void laptop_sync_completion(void)
  * will write six megabyte chunks, max.
  */
 
-static void set_ratelimit(void)
+void set_ratelimit(void)
 {
 	ratelimit_pages = vm_total_pages / (num_online_cpus() * 32);
 	if (ratelimit_pages < 16)
_

Patches currently in -mm which might be from sekharan@xxxxxxxxxx are

remove-static-variable-mm-page-writebackctotal_pages.patch
call-mm-page-writebackcset_ratelimit-when-new-pages.patch
call-mm-page-writebackcset_ratelimit-when-new-pages-tidy.patch
add-srcu-based-notifier-chains.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux