diff options
author | 2020-09-30 18:37:29 -0400 | |
---|---|---|
committer | 2020-10-01 09:25:07 -0500 | |
commit | 4f2b30fd9b4bd6e3620fe55786df7fc5f89ad526 (patch) | |
tree | 92d117a19bef10927e8b4a36bce9c237538c38f6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fs: dlm: rework receive handling (diff) | |
download | wireguard-linux-4f2b30fd9b4bd6e3620fe55786df7fc5f89ad526.tar.xz wireguard-linux-4f2b30fd9b4bd6e3620fe55786df7fc5f89ad526.zip |
fs: dlm: fix race in nodeid2con
This patch fixes a race in nodeid2con in cases that we parallel running
a lookup and both will create a connection structure for the same nodeid.
It's a rare case to create a new connection structure to keep reader
lockless we just do a lookup inside the protection area again and drop
previous work if this race happens.
Fixes: a47666eb763cc ("fs: dlm: make connection hash lockless")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions