From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH] net: Convert atomic_t net::count to refcount_t Date: Fri, 12 Jan 2018 07:53:55 -0800 Message-ID: <1515772435.131759.35.camel@gmail.com> References: <151577086012.22020.9600397187098638726.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: davem@davemloft.net, ebiederm@xmission.com To: Kirill Tkhai , netdev@vger.kernel.org Return-path: Received: from mail-pf0-f196.google.com ([209.85.192.196]:37092 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933975AbeALPx6 (ORCPT ); Fri, 12 Jan 2018 10:53:58 -0500 Received: by mail-pf0-f196.google.com with SMTP id p1so4674036pfh.4 for ; Fri, 12 Jan 2018 07:53:58 -0800 (PST) In-Reply-To: <151577086012.22020.9600397187098638726.stgit@localhost.localdomain> Sender: netdev-owner@vger.kernel.org List-ID: 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 ? Thanks for doing that Kirill Reviewed-by: Eric Dumazet