From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kirill Tkhai Subject: Re: [PATCH] net: Convert atomic_t net::count to refcount_t Date: Fri, 12 Jan 2018 18:56:38 +0300 Message-ID: <643cb175-4112-6d40-fd41-c922b07f3a42@virtuozzo.com> References: <151577086012.22020.9600397187098638726.stgit@localhost.localdomain> <1515772435.131759.35.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: davem@davemloft.net, ebiederm@xmission.com To: Eric Dumazet , netdev@vger.kernel.org Return-path: Received: from mail-ve1eur01on0093.outbound.protection.outlook.com ([104.47.1.93]:49328 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964862AbeALP4p (ORCPT ); Fri, 12 Jan 2018 10:56:45 -0500 In-Reply-To: <1515772435.131759.35.camel@gmail.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 12.01.2018 18:53, Eric Dumazet wrote: > On Fri, 2018-01-12 at 18:28 +0300, Kirill Tkhai wrote: >> Since net could be obtained from RCU lists, >> and there is a race with net destruction, >> the patch converts net::count to refcount_t. >> >> This provides sanity checks for the cases of >> incrementing counter of already dead net, >> when maybe_get_net() has to used instead >> of get_net(). >> >> Drivers: allyesconfig and allmodconfig are OK. >> >> Suggested-by: Eric Dumazet >> Signed-off-by: Kirill Tkhai >> --- > > Is this patch targeting net or net-next tree ? I did it on top of net-next.git > Thanks for doing that Kirill > > Reviewed-by: Eric Dumazet Thanks, Kirill