aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_frontend.c
diff options
context:
space:
mode:
authorbaker.zhang <baker.kernel@gmail.com>2013-10-13 07:50:09 -0400
committerDavid S. Miller <davem@davemloft.net>2013-10-18 13:53:59 -0400
commit77dfca7e45518ea87a4e90f9142b87687f55f708 (patch)
tree1b0390bd2cdd87cda45378ec9cbf13403294d83e /net/ipv4/fib_frontend.c
parent9aaf0435b4256de0723aa7631234336705fe5202 (diff)
fib_trie: remove duplicated rcu lock
fib_table_lookup has included the rcu lock protection. Signed-off-by: baker.zhang <baker.kernel@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r--net/ipv4/fib_frontend.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
index b3f627ac4ed8..d846304b7b89 100644
--- a/net/ipv4/fib_frontend.c
+++ b/net/ipv4/fib_frontend.c
@@ -933,7 +933,6 @@ static void nl_fib_lookup(struct fib_result_nl *frn, struct fib_table *tb)
933 local_bh_disable(); 933 local_bh_disable();
934 934
935 frn->tb_id = tb->tb_id; 935 frn->tb_id = tb->tb_id;
936 rcu_read_lock();
937 frn->err = fib_table_lookup(tb, &fl4, &res, FIB_LOOKUP_NOREF); 936 frn->err = fib_table_lookup(tb, &fl4, &res, FIB_LOOKUP_NOREF);
938 937
939 if (!frn->err) { 938 if (!frn->err) {
@@ -942,7 +941,6 @@ static void nl_fib_lookup(struct fib_result_nl *frn, struct fib_table *tb)
942 frn->type = res.type; 941 frn->type = res.type;
943 frn->scope = res.scope; 942 frn->scope = res.scope;
944 } 943 }
945 rcu_read_unlock();
946 local_bh_enable(); 944 local_bh_enable();
947 } 945 }
948} 946}