diff options
author | 2017-03-29 19:11:27 +0800 | |
---|---|---|
committer | 2017-04-08 23:52:15 +0200 | |
commit | 8b5995d0633b04f9a0d321a7cc77e386440730cf (patch) | |
tree | d495422d1ce9a6b03ba312921d2b4b9ad90779d8 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | netfilter: ctnetlink: using bit to represent the ct event (diff) | |
download | linux-dev-8b5995d0633b04f9a0d321a7cc77e386440730cf.tar.xz linux-dev-8b5995d0633b04f9a0d321a7cc77e386440730cf.zip |
netfilter: helper: Add the rcu lock when call __nf_conntrack_helper_find
When invoke __nf_conntrack_helper_find, it needs the rcu lock to
protect the helper module which would not be unloaded.
Now there are two caller nf_conntrack_helper_try_module_get and
ctnetlink_create_expect which don't hold rcu lock. And the other
callers left like ctnetlink_change_helper, ctnetlink_create_conntrack,
and ctnetlink_glue_attach_expect, they already hold the rcu lock
or spin_lock_bh.
Remove the rcu lock in functions nf_ct_helper_expectfn_find_by_name
and nf_ct_helper_expectfn_find_by_symbol. Because they return one pointer
which needs rcu lock, so their caller should hold the rcu lock, not in
these two functions.
Signed-off-by: Gao Feng <fgao@ikuai8.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions