Netdev List
 help / color / mirror / Atom feed
From: Kirill Tkhai <ktkhai@virtuozzo.com>
To: Eric Dumazet <eric.dumazet@gmail.com>, netdev@vger.kernel.org
Cc: davem@davemloft.net, ebiederm@xmission.com
Subject: Re: [PATCH] net: Convert atomic_t net::count to refcount_t
Date: Fri, 12 Jan 2018 18:56:38 +0300	[thread overview]
Message-ID: <643cb175-4112-6d40-fd41-c922b07f3a42@virtuozzo.com> (raw)
In-Reply-To: <1515772435.131759.35.camel@gmail.com>

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 <eric.dumazet@gmail.com>
>> Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
>> ---
> 
> 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 <edumazet@google.com>

Thanks,
Kirill

  reply	other threads:[~2018-01-12 15:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-12 15:28 [PATCH] net: Convert atomic_t net::count to refcount_t Kirill Tkhai
2018-01-12 15:53 ` Eric Dumazet
2018-01-12 15:56   ` Kirill Tkhai [this message]
2018-01-15 19:23 ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=643cb175-4112-6d40-fd41-c922b07f3a42@virtuozzo.com \
    --to=ktkhai@virtuozzo.com \
    --cc=davem@davemloft.net \
    --cc=ebiederm@xmission.com \
    --cc=eric.dumazet@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox