Skip to content

Commit 78aa23d

Browse files
Florian Westphalummakynes
authored andcommitted
netfilter: ipset: remove rcu_read_lock_bh pair from ip_set_test
Callers already hold rcu_read_lock. Prior to RCU conversion this used to be a read_lock_bh(), but now the bh-disable isn't needed anymore. Cc: Jozsef Kadlecsik <[email protected]> Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent de6843b commit 78aa23d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

net/netfilter/ipset/ip_set_core.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,9 +739,7 @@ ip_set_test(ip_set_id_t index, const struct sk_buff *skb,
739739
!(opt->family == set->family || set->family == NFPROTO_UNSPEC))
740740
return 0;
741741

742-
rcu_read_lock_bh();
743742
ret = set->variant->kadt(set, skb, par, IPSET_TEST, opt);
744-
rcu_read_unlock_bh();
745743

746744
if (ret == -EAGAIN) {
747745
/* Type requests element to be completed */

0 commit comments

Comments
 (0)