hv_vmbus: Correct the stale comments regarding cpu affinity
authorHaiyang Zhang <haiyangz@microsoft.com>
Mon, 5 Mar 2018 05:17:17 +0000 (22:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Mar 2018 17:57:16 +0000 (09:57 -0800)
The comments doesn't match what the current code does, also have a
typo. This patch corrects them.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel_mgmt.c
include/linux/hyperv.h

index c21020b..c6d9d19 100644 (file)
@@ -596,10 +596,8 @@ static int next_numa_node_id;
 /*
  * Starting with Win8, we can statically distribute the incoming
  * channel interrupt load by binding a channel to VCPU.
- * We do this in a hierarchical fashion:
- * First distribute the primary channels across available NUMA nodes
- * and then distribute the subchannels amongst the CPUs in the NUMA
- * node assigned to the primary channel.
+ * We distribute the interrupt loads to one or more NUMA nodes based on
+ * the channel's affinity_policy.
  *
  * For pre-win8 hosts or non-performance critical channels we assign the
  * first CPU in the first NUMA node.
index 93bd6fc..2048f3c 100644 (file)
@@ -844,7 +844,7 @@ struct vmbus_channel {
 
        /*
         * NUMA distribution policy:
-        * We support teo policies:
+        * We support two policies:
         * 1) Balanced: Here all performance critical channels are
         *    distributed evenly amongst all the NUMA nodes.
         *    This policy will be the default policy.