]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-compaction-acquire-the-zone-lru_lock-as-late-as-possible-fix
authorMinchan Kim <minchan@kernel.org>
Fri, 28 Sep 2012 00:19:45 +0000 (10:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Sep 2012 06:07:48 +0000 (16:07 +1000)
augment comment

Cc: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/compaction.c

index a0c1a08c4172ab221d8c74d7292bc0042059ec62..7d96f8b45aa8fe75fe4751be12b85f8d6c384227 100644 (file)
@@ -415,7 +415,8 @@ isolate_migratepages_range(struct zone *zone, struct compact_control *cc,
                 * if PageLRU is set) but the lock is not necessarily taken
                 * here and it is wasteful to take it just to check transhuge.
                 * Check transhuge without lock and skip if it's either a
-                * transhuge or hugetlbfs page.
+                * transhuge or hugetlbfs page because calling compound_order()
+                * requires lru_lock to exclude isolation and splitting.
                 */
                if (PageTransHuge(page)) {
                        if (!locked)