diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2019-02-14 15:03:26 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2019-02-22 13:48:48 +0100 |
commit | 3692293163b8ba1f28bad0e4a7ddf4fa0a7fd34d (patch) | |
tree | 24576379a6d0cb8f6c63d7e58f186587569bec37 /lib/rhashtable.c | |
parent | Merge remote-tracking branch 'net-next/master' into mac80211-next (diff) | |
download | linux-3692293163b8ba1f28bad0e4a7ddf4fa0a7fd34d.tar.xz linux-3692293163b8ba1f28bad0e4a7ddf4fa0a7fd34d.zip |
mac80211: Use rhashtable_lookup_get_insert_fast instead of racy code
The code in mesh_path_add tries to handle the case where a duplicate
entry is added to the rhashtable by doing a lookup after a failed
insertion. It also tries to handle races by repeating the insertion
should the lookup fail.
This is now unnecessary as we have rhashtable API functions that can
directly return the mathcing object.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'lib/rhashtable.c')
0 files changed, 0 insertions, 0 deletions