Skip to contentSkip to conversation

aoe-perform-i-o-completions-in-parallel-v2.patch removed from -mm tree

folded-merged [email protected] 1 participant 1 message Jul 3, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Subject: [folded-merged] aoe-perform-i-o-completions-in-parallel-v2.patch removed from -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Wed, 03 Jul 2013 14:43:25 -0700

The patch titled
Subject: aoe-perform-i-o-completions-in-parallel-v2
has been removed from the -mm tree. Its filename was
aoe-perform-i-o-completions-in-parallel-v2.patch

This patch was dropped because it was folded into aoe-perform-i-o-completions-in-parallel.patch

------------------------------------------------------
From: Ed Cashin <[email protected]>
Subject: aoe-perform-i-o-completions-in-parallel-v2

---

 drivers/block/aoe/aoecmd.c |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
drivers/block/aoe/aoecmd.c renamed from drivers/block/aoe/aoecmd.c~aoe-perform-i-o-completions-in-parallel-v2 +6 -3
diff -puN drivers/block/aoe/aoecmd.c~aoe-perform-i-o-completions-in-parallel-v2 drivers/block/aoe/aoecmd.c
@@ -35,9 +35,12 @@ module_param(aoe_maxout, int, 0644);
 MODULE_PARM_DESC(aoe_maxout,
 	"Only aoe_maxout outstanding packets for every MAC on eX.Y.");
 
-/* The number of online cpus in the system,
- * this dictates the number of ktio threads
- * which will be spawned.
+/* The number of online cpus during module initialization gives us a
+ * convenient heuristic cap on the parallelism used for ktio threads
+ * doing I/O completion.  It is not important that the cap equal the
+ * actual number of running CPUs at any given time, but because of CPU
+ * hotplug, we take care to use ncpus instead of using
+ * num_online_cpus() after module initialization.
  */
 static int ncpus;
 
@@ -1792,10 +1795,6 @@ aoecmd_init(void)
 		return -ENOMEM;
 	empty_page = virt_to_page(p);