From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH V2 net-next 1/1] hv_netvsc: Wait for sub-channels to be processed during probe Date: Sun, 26 Jul 2015 16:40:54 -0700 (PDT) Message-ID: <20150726.164054.334062063521214575.davem@davemloft.net> References: <1437590552-10211-1-git-send-email-kys@microsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: olaf@aepfle.de, netdev@vger.kernel.org, jasowang@redhat.com, linux-kernel@vger.kernel.org, apw@canonical.com, devel@linuxdriverproject.org To: kys@microsoft.com Return-path: In-Reply-To: <1437590552-10211-1-git-send-email-kys@microsoft.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" List-Id: netdev.vger.kernel.org From: "K. Y. Srinivasan" Date: Wed, 22 Jul 2015 11:42:32 -0700 > 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. > > Reviewed-and-tested-by: Haiyang Zhang Signed-off-by: K. Y. Srinivasan Applied, thanks.