commit | 0ad66449aa3cbaedbdeaf55bffce74084bb7e9f9 | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.com> | Mon Jun 18 12:52:50 2018 +1000 |
committer | David S. Miller <davem@davemloft.net> | Fri Jun 22 13:43:27 2018 +0900 |
tree | 32b444b2154c26c3936446dcc9d1d234521f23a5 | |
parent | 5af68ef7333c8606bfe6e400cb962081518c3acb [diff] |
rhashtable: use cmpxchg() to protect ->future_tbl. Rather than borrowing one of the bucket locks to protect ->future_tbl updates, use cmpxchg(). This gives more freedom to change how bucket locking is implemented. Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: David S. Miller <davem@davemloft.net>