Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934258AbbDXIxf (ORCPT ); Fri, 24 Apr 2015 04:53:35 -0400 Received: from mail-bn1bon0119.outbound.protection.outlook.com ([157.56.111.119]:42740 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934034AbbDXIxa convert rfc822-to-8bit (ORCPT ); Fri, 24 Apr 2015 04:53:30 -0400 X-Greylist: delayed 760 seconds by postgrey-1.27 at vger.kernel.org; Fri, 24 Apr 2015 04:53:29 EDT Authentication-Results: spf=pass (sender IP is 206.191.229.116) smtp.mailfrom=microsoft.com; redhat.com; dkim=none (message not signed) header.d=none; From: Dexuan Cui To: Vitaly Kuznetsov , KY Srinivasan CC: Haiyang Zhang , "devel@linuxdriverproject.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 4/6] Drivers: hv: vmbus: move init_vp_index() call to vmbus_process_offer() Thread-Topic: [PATCH 4/6] Drivers: hv: vmbus: move init_vp_index() call to vmbus_process_offer() Thread-Index: AQHQfD9f9gBdL4xeuk+qZghgoFxoUp1bwxwA Date: Fri, 24 Apr 2015 08:38:25 +0000 Message-ID: References: <1429626460-7947-1-git-send-email-vkuznets@redhat.com> <1429626460-7947-5-git-send-email-vkuznets@redhat.com> In-Reply-To: <1429626460-7947-5-git-send-email-vkuznets@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [141.251.57.196] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:206.191.229.116;CTRY:US;IPV:NLI;EFV:NLI;BMV:1;SFV:NSPM;SFS:(10019020)(6009001)(438002)(164054003)(51704005)(189002)(199003)(13464003)(86146001)(16796002)(6806004)(86612001)(19580405001)(19580395003)(86362001)(87936001)(33646002)(2656002)(108616004)(23726002)(97756001)(106466001)(46102003)(47776003)(106116001)(50466002)(50986999)(76176999)(2421001)(46406003)(5001770100001)(102836002)(62966003)(2950100001)(24736003)(54356999)(66066001)(77156002)(92566002)(2900100001)(1511001)(4001450100001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR0301MB1321;H:064-smtp-out.microsoft.com;FPR:;SPF:Pass;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1321;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0713; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5002010)(5005006)(3002001);SRVR:CY1PR0301MB1321;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1321; X-Forefront-PRVS: 05568D1FF7 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2015 08:38:33.2280 (UTC) X-MS-Exchange-CrossTenant-Id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=72f988bf-86f1-41af-91ab-2d7cd011db47;Ip=[206.191.229.116];Helo=[064-smtp-out.microsoft.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1321 X-OriginatorOrg: microsoft.onmicrosoft.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1091 Lines: 26 > -----Original Message----- > From: Vitaly Kuznetsov [mailto:vkuznets@redhat.com] > Sent: Tuesday, April 21, 2015 22:28 > To: KY Srinivasan > Cc: Haiyang Zhang; devel@linuxdriverproject.org; linux- > kernel@vger.kernel.org; Dexuan Cui > Subject: [PATCH 4/6] Drivers: hv: vmbus: move init_vp_index() call to > vmbus_process_offer() > > We need to call init_vp_index() after we added the channel to the > appropriate > list (global or subchannel) to be able to use this information when assigning > the channel to the particular vcpu. To do so we need to move a couple of > functions around. The only real change is the init_vp_index() call. This is a > small refactoring without a functional change. IMO we don't have to move such a big block of code -- we only need to add a forward function declaration of init_vp_index()? Thanks, -- Dexuan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/