Skip to contentSkip to conversation

+ mm-compactionc-update-comment-about-zone-lock-in-isolate_freepages_block.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Sep 16, 2013

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + mm-compactionc-update-comment-about-zone-lock-in-isolate_freepages_block.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Mon, 16 Sep 2013 15:46:47 -0700

The patch titled
Subject: mm/compaction.c: update comment about zone lock in isolate_freepages_block
has been added to the -mm tree. Its filename is
mm-compactionc-update-comment-about-zone-lock-in-isolate_freepages_block.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-compactionc-update-comment-about-zone-lock-in-isolate_freepages_block.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-compactionc-update-comment-about-zone-lock-in-isolate_freepages_block.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: Jerome Marchand <[email protected]>
Subject: mm/compaction.c: update comment about zone lock in isolate_freepages_block

Since commit f40d1e4 ("mm: compaction: acquire the zone->lock as late as possible"), isolate_freepages_block() takes the zone->lock itself. The function description however still states that the zone->lock must be held.

This patch removes this outdated statement.

---

 mm/compaction.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
mm/compaction.c renamed from mm/compaction.c~mm-compactionc-update-comment-about-zone-lock-in-isolate_freepages_block +3 -4
diff -puN mm/compaction.c~mm-compactionc-update-comment-about-zone-lock-in-isolate_freepages_block mm/compaction.c
@@ -235,10 +235,9 @@ static bool suitable_migration_target(st
 }
 
 /*
- * Isolate free pages onto a private freelist. Caller must hold zone->lock.
- * If @strict is true, will abort returning 0 on any invalid PFNs or non-free
- * pages inside of the pageblock (even though it may still end up isolating
- * some pages).
+ * Isolate free pages onto a private freelist. If @strict is true, will abort
+ * returning 0 on any invalid PFNs or non-free pages inside of the pageblock
+ * (even though it may still end up isolating some pages).
  */
 static unsigned long isolate_freepages_block(struct compact_control *cc,
 				unsigned long blockpfn,

_

Patches currently in -mm which might be from [email protected] are

mm-compactionc-update-comment-about-zone-lock-in-isolate_freepages_block.patch