Skip to contentSkip to conversation

mm-compaction-terminate-async-compaction-when-rescheduling.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 5, 2014

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] mm-compaction-terminate-async-compaction-when-rescheduling.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 05 Jun 2014 12:51:51 -0700

The patch titled
Subject: mm, compaction: terminate async compaction when rescheduling
has been removed from the -mm tree. Its filename was
mm-compaction-terminate-async-compaction-when-rescheduling.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: David Rientjes <[email protected]>
Subject: mm, compaction: terminate async compaction when rescheduling

Async compaction terminates prematurely when need_resched(), see compact_checklock_irqsave(). This can never trigger, however, if the cond_resched() in isolate_migratepages_range() always takes care of the scheduling.

If the cond_resched() actually triggers, then terminate this pageblock scan for async compaction as well.

---

 mm/compaction.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
mm/compaction.c renamed from mm/compaction.c~mm-compaction-terminate-async-compaction-when-rescheduling +6 -1
diff -puN mm/compaction.c~mm-compaction-terminate-async-compaction-when-rescheduling mm/compaction.c
@@ -494,8 +494,13 @@ isolate_migratepages_range(struct zone *
 			return 0;
 	}
 
+	if (cond_resched()) {
+		/* Async terminates prematurely on need_resched() */
+		if (cc->mode == MIGRATE_ASYNC)
+			return 0;
+	}
+
 	/* Time to isolate some pages for migration */
-	cond_resched();
 	for (; low_pfn < end_pfn; low_pfn++) {
 		/* give a chance to irqs before checking need_resched() */
 		if (locked && !(low_pfn % SWAP_CLUSTER_MAX)) {

_

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

origin.patch
mm-utilc-add-kstrimdup.patch
linux-next.patch