summaryrefslogtreecommitdiffstats
path: root/src/kernel/net.c
diff options
context:
space:
mode:
authorManuel Bentele2020-11-09 07:48:36 +0100
committerManuel Bentele2020-11-09 07:48:36 +0100
commit07684ba72271a1307124eb71904f5c5aa1aebe43 (patch)
tree52a84fdb774e0145b41f872338f44bc4ad2f10e2 /src/kernel/net.c
parent[KERNEL] protect access to server list if alt server is added/removed (diff)
downloaddnbd3-07684ba72271a1307124eb71904f5c5aa1aebe43.tar.gz
dnbd3-07684ba72271a1307124eb71904f5c5aa1aebe43.tar.xz
dnbd3-07684ba72271a1307124eb71904f5c5aa1aebe43.zip
[KERNEL] protect read-only access to server list
This patch completes the changes from the last commit [1] and protects in addition the read-only access to the alternative list of new servers. Otherwise a race condition between ioctl ADD_SRV/REM_SRV (process context) and dnbd3 discover thread would be possible since the 'new_servers_num' field is changed in both contexts. [1] - DNBD3 commit db5a93a43fea2aa3c3bbaf8c48d238e60d834676
Diffstat (limited to 'src/kernel/net.c')
0 files changed, 0 insertions, 0 deletions