From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] l2tp: consistent reference counting in procfs and debufs Date: Fri, 27 Apr 2018 11:06:55 -0400 (EDT) Message-ID: <20180427.110655.2017347091283412542.davem@davemloft.net> References: <05e09a546a94331e43d9e771f6ce515b1cdbf521.1524678712.git.g.nault@alphalink.fr> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, jchapman@katalix.com To: g.nault@alphalink.fr Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:53128 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933807AbeD0PG5 (ORCPT ); Fri, 27 Apr 2018 11:06:57 -0400 In-Reply-To: <05e09a546a94331e43d9e771f6ce515b1cdbf521.1524678712.git.g.nault@alphalink.fr> Sender: netdev-owner@vger.kernel.org List-ID: From: Guillaume Nault Date: Wed, 25 Apr 2018 19:54:14 +0200 > The 'pppol2tp' procfs and 'l2tp/tunnels' debugfs files handle reference > counting of sessions differently than for tunnels. > > For consistency, use the same mechanism for handling both sessions and > tunnels. That is, drop the reference on the previous session just > before looking up the next one (rather than in .show()). If necessary > (if dump stops before *_next_session() returns NULL), drop the last > reference in .stop(). > > Signed-off-by: Guillaume Nault Applied. Your continued bug fixing and clenaups in this area are very much appreciated.