Received: by 10.223.185.116 with SMTP id b49csp2225300wrg; Sun, 4 Mar 2018 22:02:01 -0800 (PST) X-Google-Smtp-Source: AG47ELvwykW1ED8iqSFzuUDAPbG6/TtmX5nAONj+IHe3/Km6aouJUx9pzRpB/5+FC3YIoWl5mPSW X-Received: by 2002:a17:902:365:: with SMTP id 92-v6mr12191334pld.127.1520229721256; Sun, 04 Mar 2018 22:02:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520229721; cv=none; d=google.com; s=arc-20160816; b=a97K5AjOI+E/3euV7sX0gTS1tfWkcDxfk5sWNUP2+E6O2G08aC/gIEVYkuDDF68PzB yUiq6j5Ew/CRuAd3qmfgOAEVoB03rJ8hjeXUmJr0nfEaOhWwVq5KD8naaYNNKstcl8+M nMuJ7CsrXDjbJxUwJpoDiGaxeGWmYA48q0xUI2PDgY4nFbZaNof8cX1YZzwiKRLAjwGX 7Gh01wA+ub+sfnf0/w193iyr8b161xK19hceafWaS4FNnbpqLUa1nqbuREpKjv6W3D51 dGWCM0K30tdayoB42ThZWRSkfzkefoauUv8/A2Bh0ErkKaKqZxdZ+MFQ4P2wB2vGLkN/ 1wPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:reply-to:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=/CxsDCDPqmR0F3so1vLHhlmj6ATaL0g9XM4OzSbERq0=; b=Ki5jPf2gEF8b3MWzBESfhxBVVdz2GJEuxpDTvyrivLrpWMSiB0us99qSh+w9tTaWng KhoB5Sq6ELaeIZaLg+1quKW9qXhR8qwL628JJbNSC3rNUhF0zo/ewX48OPEQUe3kkyz5 V/TCRYrTsCRowBkARkL7Vb0P54dnV37pVpmHwjf7sWYS3ZG5DJqxhfZD0VxNU+BXaOf+ /PBzHlgmvHUi2oRU7a0w/5z+RCOvT6nWI9hcL+hIJ/G0qOOX7/z1m7srxInMDYFNdaZD RyNd6BXnHvEAEfhOeCyeE4yUbfYUOQmaSPx4BXL3kYfCe9eM4YPYjOmCZtlO89atwaqS rbRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u66si7914169pgc.651.2018.03.04.22.01.46; Sun, 04 Mar 2018 22:02:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752526AbeCEFSl (ORCPT + 99 others); Mon, 5 Mar 2018 00:18:41 -0500 Received: from a2nlsmtp01-03.prod.iad2.secureserver.net ([198.71.225.37]:36680 "EHLO a2nlsmtp01-03.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751776AbeCEFSe (ORCPT ); Mon, 5 Mar 2018 00:18:34 -0500 Received: from linuxonhyperv2.linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id siVBeODImdOycsiVBemkyu; Sun, 04 Mar 2018 22:17:33 -0700 x-originating-ip: 107.180.71.197 Received: from kys by linuxonhyperv2.linuxonhyperv.com with local (Exim 4.89_1) (envelope-from ) id 1esiVB-00050S-Bg; Sun, 04 Mar 2018 22:17:33 -0700 From: kys@exchange.microsoft.com To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com, leann.ogasawara@canonical.com, marcelo.cerri@canonical.com, sthemmin@microsoft.com Cc: Haiyang Zhang , "K . Y . Srinivasan" Subject: [PATCH V2 07/12] hv_vmbus: Correct the stale comments regarding cpu affinity Date: Sun, 4 Mar 2018 22:17:17 -0700 Message-Id: <20180305051722.19157-7-kys@exchange.microsoft.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180305051722.19157-1-kys@exchange.microsoft.com> References: <20180305051539.19079-1-kys@exchange.microsoft.com> <20180305051722.19157-1-kys@exchange.microsoft.com> Reply-To: kys@microsoft.com X-CMAE-Envelope: MS4wfOOgjQbpPLEUACaNnRs532IZZhW10v2/CAvkpP8QMK38D5DC67IgtyT/OHtKlK+5mjKbPeFz3UPXZqLwpfv11xvUugHnytD+cR0gP9X27wKzA7mhHGrQ m6ZNpALEhnzk8IWiK6gUhQ85SB4/jTxJfXfTqqRqeVw9Mf0F2JjLGaW6VAMaCR/ywGiCCQ0zlA/O93/8F81fZkO0ARFI69kLXLQHl2qA8kJGdgTSk1UEyW8C A/9Q0DpIjXYFzX/nirnXAp6CMgQM2kW0q4HxfElxdtLEMxxZdjgyvVSQFwjnlH06q4DfM5e1H/t6QJFQkzk1T7zJGqf5F5wh1e0+iVdcVE4QRCoDILgHAHP6 p+Y7PsYIAY4Y6CKDz+v6Ohb+PHL8jY9540meIaIAIM8BlLscWSJE+VbT1wFjdhT4Wh7Uw8JUiPfuKQkpEgVHo2NZJ02yiDNoRLrpqUFeQh1ERqJE+GCUo+5x vD/LeMDrUcozyoklBbdbmIVYVJNx6eLHND8ta7rfRL7ENW0dbzTAExs39pcMbOIKgK+o+rDWkzUfUFp/OplFUvg8gEUkYzCXH8c1uzWOKaldyfQ32miB5j8x 6It2M+15dWN7BjSnGv03PBGe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Haiyang Zhang The comments doesn't match what the current code does, also have a typo. This patch corrects them. Signed-off-by: Haiyang Zhang Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 6 ++---- include/linux/hyperv.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index c21020b69114..c6d9d19bc04e 100644 --- a/drivers/hv/channel_mgmt.c +++ b/drivers/hv/channel_mgmt.c @@ -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. diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 93bd6fcd6e62..2048f3c3b68a 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -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. -- 2.15.1