]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit76e2562a8bd3f279109cb1039380dfc8f0e8c766
tree79e380d3877cc9d72cfcc3122916bac0af4c2056
parent03898cd6cd6b8c630319fca6d5c7b910d75b8508
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: 6b35a704d780 ("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