Commit 58be8a58 authored by Thomas Graf's avatar Thomas Graf Committed by David S. Miller

rhashtable: Extend RCU read lock into rhashtable_insert_rehash()

rhashtable_insert_rehash() requires RCU locks to be held in order
to access ht->tbl and traverse to the last table.

Fixes: ccd57b1b ("rhashtable: Add immediate rehash during insertion")
Signed-off-by: default avatarThomas Graf <>
Signed-off-by: default avatarDavid S. Miller <>
parent 27cd5452
......@@ -585,8 +585,8 @@ restart:
if (unlikely(rht_grow_above_100(ht, tbl))) {
err = rhashtable_insert_rehash(ht);
if (err)
return err;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment