提交 2af4b529 编写于 作者: T Thomas Graf 提交者: 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: NThomas Graf <tgraf@suug.ch>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a5ec68e3
......@@ -392,6 +392,8 @@ int rhashtable_expand(struct rhashtable *ht)
}
}
synchronize_rcu();
bucket_table_free(old_tbl);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册