Re: [Devel] [PATCH rh7] vznetstat: fix RCU-protected "info_V{4, 6}" pointers initialization

2015-11-17 Thread Konstantin Khorenko
Stas, i'm applying this, thank you. Vasya, as far as i see 2.6.32-x kernel has the same code, please check and apply the patch if needed. -- Best regards, Konstantin Khorenko, Virtuozzo Linux Kernel Team On 11/12/2015 04:42 PM, Stanislav Kinsburskiy wrote: This pointers have to be referenced

[Devel] [PATCH rh7] vznetstat: fix RCU-protected "info_V{4, 6}" pointers initialization

2015-11-12 Thread Stanislav Kinsburskiy
This pointers have to be referenced and assigned under rcu_read_lock(). Moreover, there is no need to take tc_lock: it protects stats hash, but not info pointers. Fixes the following warning: [ 31.658913] === [ 31.659035] [ INFO: suspicious RCU usage. ] [