Thread (4 messages) flat view 4 messages, 3 authors, 2018-01-15

Re: [PATCH] net: Convert atomic_t net::count to refcount_t

From: Kirill Tkhai <hidden>
Date: 2018-01-12 15:56:45

On 12.01.2018 18:53, Eric Dumazet wrote:
On Fri, 2018-01-12 at 18:28 +0300, Kirill Tkhai wrote:
quoted
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 <redacted>
Signed-off-by: Kirill Tkhai <redacted>
---
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help