diff options
author | baker.zhang <baker.kernel@gmail.com> | 2013-10-13 13:50:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-18 19:53:59 +0200 |
commit | 77dfca7e45518ea87a4e90f9142b87687f55f708 (patch) | |
tree | 1b0390bd2cdd87cda45378ec9cbf13403294d83e /net/ipv4/fib_frontend.c | |
parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klasse... (diff) | |
download | linux-77dfca7e45518ea87a4e90f9142b87687f55f708.tar.xz linux-77dfca7e45518ea87a4e90f9142b87687f55f708.zip |
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.c | 2 |
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(); } } |