+ mm-vmscan-dont-mess-with-pgdat-flags-in-memcg-reclaim-checkpatch-fixes.patch added to -mm tree

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

 



The patch titled
     Subject: mm-vmscan-dont-mess-with-pgdat-flags-in-memcg-reclaim-checkpatch-fixes
has been added to the -mm tree.  Its filename is
     mm-vmscan-dont-mess-with-pgdat-flags-in-memcg-reclaim-checkpatch-fixes.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/mm-vmscan-dont-mess-with-pgdat-flags-in-memcg-reclaim-checkpatch-fixes.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mm-vmscan-dont-mess-with-pgdat-flags-in-memcg-reclaim-checkpatch-fixes.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Subject: mm-vmscan-dont-mess-with-pgdat-flags-in-memcg-reclaim-checkpatch-fixes

WARNING: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#29: 
    while true; do dd if=/dev/zero of=/mnt/sdb/zeroes bs=1M count=1024; done &

WARNING: line over 80 characters
#214: FILE: mm/vmscan.c:2581:
+			 * zones or there is heavy usage of a slow backing device.

WARNING: line over 80 characters
#225: FILE: mm/vmscan.c:2592:
+			if (stat.nr_writeback && stat.nr_writeback == stat.nr_taken)

WARNING: line over 80 characters
#255: FILE: mm/vmscan.c:2630:
+		    current_may_throttle() && pgdat_memcg_congested(pgdat, root))

total: 0 errors, 4 warnings, 189 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

./patches/mm-vmscan-dont-mess-with-pgdat-flags-in-memcg-reclaim.patch has style problems, please review.

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---


diff -puN mm/vmscan.c~mm-vmscan-dont-mess-with-pgdat-flags-in-memcg-reclaim-checkpatch-fixes mm/vmscan.c
--- a/mm/vmscan.c~mm-vmscan-dont-mess-with-pgdat-flags-in-memcg-reclaim-checkpatch-fixes
+++ a/mm/vmscan.c
@@ -2578,10 +2578,10 @@ static bool shrink_node(pg_data_t *pgdat
 			 * is exceeding the page laundering rate. Either the
 			 * global limits are not being effective at throttling
 			 * processes due to the page distribution throughout
-			 * zones or there is heavy usage of a slow backing device.
-			 * The only option is to throttle from reclaim context
-			 * which is not ideal as there is no guarantee the
-			 * dirtying process is throttled in the same way
+			 * zones or there is heavy usage of a slow backing
+			 * device.  The only option is to throttle from reclaim
+			 * context which is not ideal as there is no guarantee
+			 * the dirtying process is throttled in the same way
 			 * balance_dirty_pages() manages.
 			 *
 			 * Once a node is flagged PGDAT_WRITEBACK, kswapd will
@@ -2593,8 +2593,9 @@ static bool shrink_node(pg_data_t *pgdat
 				set_bit(PGDAT_WRITEBACK, &pgdat->flags);
 
 			/*
-			 * Tag a node as congested if all the dirty pages scanned were
-			 * backed by a congested BDI and wait_iff_congested will stall.
+			 * Tag a node as congested if all the dirty pages
+			 * scanned were backed by a congested BDI and
+			 * wait_iff_congested will stall.
 			 */
 			if (stat.nr_dirty && stat.nr_dirty == stat.nr_congested)
 				set_bit(PGDAT_CONGESTED, &pgdat->flags);
@@ -2605,9 +2606,9 @@ static bool shrink_node(pg_data_t *pgdat
 
 			/*
 			 * If kswapd scans pages marked marked for immediate
-			 * reclaim and under writeback (nr_immediate), it implies
-			 * that pages are cycling through the LRU faster than
-			 * they are written so also forcibly stall.
+			 * reclaim and under writeback (nr_immediate), it
+			 * implies that pages are cycling through the LRU faster
+			 * than they are written so also forcibly stall.
 			 */
 			if (stat.nr_immediate)
 				congestion_wait(BLK_RW_ASYNC, HZ/10);
@@ -2622,9 +2623,10 @@ static bool shrink_node(pg_data_t *pgdat
 			set_memcg_bit(PGDAT_CONGESTED, root);
 
 		/*
-		 * Stall direct reclaim for IO completions if underlying BDIs and node
-		 * is congested. Allow kswapd to continue until it starts encountering
-		 * unqueued dirty pages or cycling through the LRU too quickly.
+		 * Stall direct reclaim for IO completions if underlying BDIs
+		 * and node is congested.  Allow kswapd to continue until it
+		 * starts encountering unqueued dirty pages or cycling through
+		 * the LRU too quickly.
 		 */
 		if (!sc->hibernation_mode && !current_is_kswapd() &&
 		    current_may_throttle() && pgdat_memcg_congested(pgdat, root))
_

Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are

i-need-old-gcc.patch
mm-mempolicy-avoid-use-uninitialized-preferred_node-fix.patch
hugetlbfs-check-for-pgoff-value-overflow-v3-fix.patch
hugetlbfs-check-for-pgoff-value-overflow-v3-fix-fix.patch
mm-remove-unused-arg-from-memblock_next_valid_pfn.patch
mm-vmalloc-add-interfaces-to-free-unmapped-page-table-fix.patch
arm-arch-arm-include-asm-pageh-needs-personalityh.patch
ocfs2-without-quota-support-try-to-avoid-calling-quota-recovery-checkpatch-fixes.patch
mm.patch
mm-initialize-pages-on-demand-during-boot-fix-4-fix.patch
mm-initialize-pages-on-demand-during-boot-v5-fix.patch
mm-initialize-pages-on-demand-during-boot-v6-checkpatch-fixes.patch
mm-page_alloc-skip-over-regions-of-invalid-pfns-on-uma-fix.patch
direct-io-minor-cleanups-in-do_blockdev_direct_io-fix.patch
mm-fix-races-between-swapoff-and-flush-dcache-fix.patch
headers-untangle-kmemleakh-from-mmh-fix.patch
mm-hmm-hmm-should-have-a-callback-before-mm-is-destroyed-fix.patch
mm-vmscan-dont-mess-with-pgdat-flags-in-memcg-reclaim-checkpatch-fixes.patch
list_lru-prefetch-neighboring-list-entries-before-acquiring-lock-fix.patch
mm-oom-cgroup-aware-oom-killer-fix.patch
mm-oom-docs-describe-the-cgroup-aware-oom-killer-fix-2-fix.patch
proc-add-seq_put_decimal_ull_width-to-speed-up-proc-pid-smaps-fix.patch
ipc-clamp-semmni-to-the-real-ipcmni-limit-fix.patch
linux-next-rejects.patch
linux-next-fixup.patch
drivers-infiniband-core-verbsc-fix-build-with-gcc-444.patch
drivers-infiniband-ulp-srpt-ib_srptc-fix-build-with-gcc-444.patch
fs-fsnotify-account-fsnotify-metadata-to-kmemcg-fix.patch
kernel-forkc-export-kernel_thread-to-modules.patch
slab-leaks3-default-y.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 Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux