Commit 2af4b529 authored by Thomas Graf's avatar Thomas Graf Committed by David S. Miller

rhashtable: Wait for RCU readers after final unzip work

We need to wait for all RCU readers to complete after the last bit of
unzipping has been completed. Otherwise the old table is freed up
prematurely.

Fixes: 7e1e7763 ("lib: Resizable, Scalable, Concurrent Hash Table")
Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a5ec68e3
......@@ -392,6 +392,8 @@ int rhashtable_expand(struct rhashtable *ht)
}
}
synchronize_rcu();
bucket_table_free(old_tbl);
return 0;
}
......
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