Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758676AbbGQPeY (ORCPT ); Fri, 17 Jul 2015 11:34:24 -0400 Received: from mail-by2on0123.outbound.protection.outlook.com ([207.46.100.123]:27174 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757964AbbGQPeX convert rfc822-to-8bit (ORCPT ); Fri, 17 Jul 2015 11:34:23 -0400 From: KY Srinivasan To: Dexuan Cui , "davem@davemloft.net" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devel@linuxdriverproject.org" , "olaf@aepfle.de" , "apw@canonical.com" , "jasowang@redhat.com" , "vkuznets@redhat.com" Subject: RE: [PATCH net-next 1/1] hv_netvsc: Wait for sub-channels to be processed during probe Thread-Topic: [PATCH net-next 1/1] hv_netvsc: Wait for sub-channels to be processed during probe Thread-Index: AQHQv/BE7CKV1hTvu0eTIWyibDz4rJ3fcMeAgABbHpA= Date: Fri, 17 Jul 2015 15:34:21 +0000 Message-ID: References: <1437074222-13020-1-git-send-email-kys@microsoft.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: microsoft.com; dkim=none (message not signed) header.d=none; x-originating-ip: [50.135.110.52] x-microsoft-exchange-diagnostics: 1;BY2PR0301MB1656;5:8xHw9MNHcwsDD8TUHSOTjvelhQLh8tBE5YJRpU5emrYOGkS1N1cPGOl9Hxz9XuL6hggkOFqihqZeHZnEpAeElLww5iORIK/kssmjLuEMyruoZELDBNQntVH/r8gRjcbldj3N2mdxOFQfvI+N0WeeCQ==;24:SfrCqbcuzICxyCsn9rjPTGha6sPmOUk7mgAYFsCQlxKdfp6/mnOO4s4hXpbJKAOVV3Sb6Kl0ecANjSfq5VRyx40IKZ2iSojF36EozVIpdBY=;20:HAPt+gNFP5dMLaYd2cURyVLQsd78ICYOaIRLV0N0dBvli87HrqAvhsbAGHBG0M+rhuBih/4QANT0TO/k3KO+pQ== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB1656; by2pr0301mb1656: X-MS-Exchange-Organization-RulesExecuted x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401001)(5005006)(3002001);SRVR:BY2PR0301MB1656;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB1656; x-forefront-prvs: 06400060E1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(13464003)(164054003)(377454003)(50986999)(54356999)(2501003)(86612001)(5002640100001)(77096005)(99286002)(33656002)(76576001)(62966003)(189998001)(46102003)(106116001)(5001770100001)(19580405001)(74316001)(19580395003)(76176999)(102836002)(2656002)(1511001)(77156002)(87936001)(5001960100002)(2950100001)(92566002)(2900100001)(2201001)(5003600100002)(107886002)(86362001)(122556002);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR0301MB1656;H:BY2PR0301MB1654.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jul 2015 15:34:21.9887 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB1656 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1808 Lines: 50 > -----Original Message----- > From: Dexuan Cui > Sent: Friday, July 17, 2015 3:07 AM > To: KY Srinivasan; davem@davemloft.net; netdev@vger.kernel.org; linux- > kernel@vger.kernel.org; devel@linuxdriverproject.org; olaf@aepfle.de; > apw@canonical.com; jasowang@redhat.com; vkuznets@redhat.com > Cc: KY Srinivasan > Subject: RE: [PATCH net-next 1/1] hv_netvsc: Wait for sub-channels to be > processed during probe > > > From: K. Y. Srinivasan > > Sent: Friday, July 17, 2015 3:17 > > Subject: [PATCH net-next 1/1] hv_netvsc: Wait for sub-channels to be > processed > > during probe > > > > The current code returns from probe without waiting for the proper > handling > > of subchannels that may be requested. If the netvsc driver were to be > rapidly > > loaded/unloaded, we can trigger a panic as the unload will be tearing > > down state that may not have been fully setup yet. We fix this issue by > making > > sure that we return from the probe call only after ensuring that the > > sub-channel offers in flight are properly handled. > > > > --- > > drivers/net/hyperv/hyperv_net.h | 2 ++ > > drivers/net/hyperv/rndis_filter.c | 25 +++++++++++++++++++++++++ > > 2 files changed, 27 insertions(+), 0 deletions(-) > > BTW, not sure if we should make the same fix to storvsc. > > IMO storvsc should have the same issue, at least in theory, though usually it's > unlikely to unload storvsc. :-) You are right; I am planning to submit a similar patch for storvsc. As you note, this scenario is unlikely for sorvsc. K. Y > > 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/