rhashtable: Wait for RCU readers after final unzip work
authorThomas Graf <tgraf@suug.ch>
Thu, 5 Feb 2015 01:03:33 +0000 (02:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Feb 2015 23:18:34 +0000 (15:18 -0800)
commit2af4b52988fd4f7ae525fcada29d4db8680033d6
tree79e380d3877cc9d72cfcc3122916bac0af4c2056
parenta5ec68e3b8f2c95ea1a5d23dd543abbe0c8d0624
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: 7e1e77636e36 ("lib: Resizable, Scalable, Concurrent Hash Table")
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/rhashtable.c