diff options
author | Cong Wang <[email protected]> | 2018-02-05 14:41:45 -0800 |
---|---|---|
committer | Pablo Neira Ayuso <[email protected]> | 2018-02-07 00:58:57 +0100 |
commit | 7dc68e98757a8eccf8ca7a53a29b896f1eef1f76 (patch) | |
tree | d7ccfe10125fd7b843b55579d7ff5b8d11744850 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 992cfc7c5d105094da7c21c9c74d97ac26bb1e56 (diff) |
netfilter: xt_RATEEST: acquire xt_rateest_mutex for hash insert
rateest_hash is supposed to be protected by xt_rateest_mutex,
and, as suggested by Eric, lookup and insert should be atomic,
so we should acquire the xt_rateest_mutex once for both.
So introduce a non-locking helper for internal use and keep the
locking one for external.
Reported-by: <[email protected]>
Fixes: 5859034d7eb8 ("[NETFILTER]: x_tables: add RATEEST target")
Signed-off-by: Cong Wang <[email protected]>
Reviewed-by: Florian Westphal <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions