[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180115.142357.55179119386016179.davem@davemloft.net>
Date: Mon, 15 Jan 2018 14:23:57 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: ktkhai@...tuozzo.com
Cc: netdev@...r.kernel.org, eric.dumazet@...il.com,
ebiederm@...ssion.com
Subject: Re: [PATCH] net: Convert atomic_t net::count to refcount_t
From: Kirill Tkhai <ktkhai@...tuozzo.com>
Date: Fri, 12 Jan 2018 18:28:31 +0300
> 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@...il.com>
> Signed-off-by: Kirill Tkhai <ktkhai@...tuozzo.com>
Applied, thank you.
Powered by blists - more mailing lists