diff options
author | David S. Miller <davem@davemloft.net> | 2020-03-31 06:48:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-31 06:48:43 +0300 |
commit | 5a470b1a63ac211e01a93de9d913753d64a21d9a (patch) | |
tree | c7b1c6914425e6e73fe25c282d610a34bdba7a24 /net/ipv4/fib_trie.c | |
parent | 3902baf9abfa320b21e38fe206d66d5e6688e721 (diff) | |
parent | 0141317611ab913d6c227b82f3dd02ff3e6fc5d8 (diff) | |
download | linux-5a470b1a63ac211e01a93de9d913753d64a21d9a.tar.xz |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Diffstat (limited to 'net/ipv4/fib_trie.c')
-rw-r--r-- | net/ipv4/fib_trie.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index b01b748df9dd..4f334b425538 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c @@ -2572,6 +2572,7 @@ static int fib_triestat_seq_show(struct seq_file *seq, void *v) " %zd bytes, size of tnode: %zd bytes.\n", LEAF_SIZE, TNODE_SIZE(0)); + rcu_read_lock(); for (h = 0; h < FIB_TABLE_HASHSZ; h++) { struct hlist_head *head = &net->ipv4.fib_table_hash[h]; struct fib_table *tb; @@ -2591,7 +2592,9 @@ static int fib_triestat_seq_show(struct seq_file *seq, void *v) trie_show_usage(seq, t->stats); #endif } + cond_resched_rcu(); } + rcu_read_unlock(); return 0; } |