Skip to content

Commit

Permalink
fib_trie: remove duplicated rcu lock
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
baker.zhang authored and David S. Miller committed Oct 18, 2013
1 parent 9aaf043 commit 77dfca7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/ipv4/fib_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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();
}
}
Expand Down

0 comments on commit 77dfca7

Please sign in to comment.