Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1338199imu; Wed, 9 Jan 2019 16:31:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN7M6jampnuxm/jmcNSzZ1RO9oMbbl93KACZnlHzRGZEfb0y+YHScQ5yHO89TtJ3/B4Rjtq4 X-Received: by 2002:a62:3811:: with SMTP id f17mr8206828pfa.206.1547080265234; Wed, 09 Jan 2019 16:31:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547080265; cv=none; d=google.com; s=arc-20160816; b=f9Ytp+nWP/yHK0Qr8uiqMenLgheLUXxoSXTRdVPWNQ1BRzChZFTZrXTPhUSh9DjI3W abOQLPV6wprwNFg/r/ruUPsptEtqSv0++pVV5sb1LrW/OeATYgzDJPiRhvFudvesY9YU H/n/Cj3CIpzmrphpT58TtFcmzRXAY8VWtIlW/G/HYhhO1LEqcZEJal4VvYJ3vA6bzvEQ YkTHds5D1iLWIlqMF/cxaAUd6HLZG+Ejk4RcA/NxWWROGo/rXDY9gpMy3TtbwAfNWhnn gzOVbj4eWqDRNg5y0has8zPj8tkaJ66HqVtg3jZGAvFbzt+YTw4SB6FbXB2r3z6c3SVN yXiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vFwblmBNC/d3ZngyJiZ2tJqjmJbjiRT/+NhVajQr+ZI=; b=x/v5qUMTb7P0cHvl4VtLL63ftEqDFxbRdafmlaTxGv3iM2Mhh04xoHGys0ccV0FmNK YO4kUMhM0e1Gz2qswCQdiradgKJNuvPNXLZ41gPodVR+vBuIrIgFj+rntAOZtx0xuGbs uGwN197htV4g8V4AluMRxMOVxyvwv/sc+IRztft1ngGCwNefpmxjJZ58NVu7KWsOmYDx IiQqyL3EZ+3UCuYbAf5cP1cbkw21R3q3r1RhvAFurjiKAHRrGnDLQBMTJyNzD6jWyITp 2BESQ1cOihBARAyEjXaBb7jagr2nXnwI8YHXvdHMIctcgWS+jExKcMoihWW4C01dB/u1 UlNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FOPUlkJl; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 65si6693pgf.521.2019.01.09.16.30.47; Wed, 09 Jan 2019 16:31:05 -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; dkim=pass header.i=@kernel.org header.s=default header.b=FOPUlkJl; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726856AbfAJAUx (ORCPT + 99 others); Wed, 9 Jan 2019 19:20:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:55236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726590AbfAJAUw (ORCPT ); Wed, 9 Jan 2019 19:20:52 -0500 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A49E02075C; Thu, 10 Jan 2019 00:20:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547079651; bh=vFwblmBNC/d3ZngyJiZ2tJqjmJbjiRT/+NhVajQr+ZI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FOPUlkJlo/w5OOwnnGSFx8ypwYOto4dwtFQevoqvU7DSQbLTZVppYguU+i+Ug5ERn WiG4DryRhhFIWDhvGmYZy+qJu6j4yg8tDmHr8HPq1ckPb6SvYX//R2ravxt6XpLEp7 JNW9E3Dt8tdrOPo4woNsRocb6fA1ymIgd7/4AAXI= Date: Wed, 9 Jan 2019 19:20:50 -0500 From: Sasha Levin To: Dexuan Cui Cc: "'gregkh@linuxfoundation.org'" , 'Stephen Hemminger' , Sasha Levin , Stephen Hemminger , Haiyang Zhang , KY Srinivasan , "'devel@linuxdriverproject.org'" , "'linux-kernel@vger.kernel.org'" , Michael Kelley , "'marcelo.cerri@canonical.com'" , "'apw@canonical.com'" , "'olaf@aepfle.de'" , vkuznets , "'jasowang@redhat.com'" , 'Dan B' Subject: Re: [PATCH][re-post] vmbus: fix subchannel removal Message-ID: <20190110002050.GL166797@sasha-vm> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 09, 2019 at 08:56:06PM +0000, Dexuan Cui wrote: > >The changes to split ring allocation from open/close, broke >the cleanup of subchannels. This resulted in problems using >uio on network devices because the subchannel was left behind >when the network device was unbound. > >The cause was in the disconnect logic which used list splice >to move the subchannel list into a local variable. This won't >work because the subchannel list is needed later during the >process of the rescind messages (relid2channel). > >The fix is to just leave the subchannel list in place >which is what the original code did. The list is cleaned >up later when the host rescind is processed. > >Without the fix, we have a lot of "hang" issues in netvsc when we >try to change the NIC's MTU, set the number of channels, etc. > >Fixes: ae6935ed7d42 ("vmbus: split ring buffer allocation from open") >Cc: stable@vger.kernel.org >Signed-off-by: Stephen Hemminger >Signed-off-by: Dexuan Cui Queued, thank you. -- Thanks, Sasha