diff options
| author | Herbert Xu <[email protected]> | 2015-03-12 11:07:49 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-03-13 03:02:30 +0000 |
| commit | 9497df88ab5567daa001829051c5f87161a81ff0 (patch) | |
| tree | 4631c01eb33d6f8bbcf018f47d31d19ad4fac5a4 /net/switchdev/switchdev.c | |
| parent | Merge branch 'listener_refactor' (diff) | |
| download | kernel-9497df88ab5567daa001829051c5f87161a81ff0.tar.gz kernel-9497df88ab5567daa001829051c5f87161a81ff0.zip | |
rhashtable: Fix reader/rehash race
There is a potential race condition between readers and the rehasher.
In particular, the rehasher could have started a rehash while the
reader finishes a scan of the old table but fails to see the new
table pointer.
This patch closes this window by adding smp_wmb/smp_rmb.
Signed-off-by: Herbert Xu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
