summaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorbaker.zhang <baker.kernel@gmail.com>2013-10-13 19:50:09 +0800
committerDavid S. Miller <davem@davemloft.net>2013-10-18 13:53:59 -0400
commit77dfca7e45518ea87a4e90f9142b87687f55f708 (patch)
tree1b0390bd2cdd87cda45378ec9cbf13403294d83e /net/ipv4
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')
-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)
local_bh_disable();
frn->tb_id = tb->tb_id;
- rcu_read_lock();
frn->err = fib_table_lookup(tb, &fl4, &res, FIB_LOOKUP_NOREF);
if (!frn->err) {
@@ -942,7 +941,6 @@ static void nl_fib_lookup(struct fib_result_nl *frn, struct fib_table *tb)
frn->type = res.type;
frn->scope = res.scope;
}
- rcu_read_unlock();
local_bh_enable();
}
}