diff options
author | Manuel Bentele | 2020-11-09 07:48:36 +0100 |
---|---|---|
committer | Manuel Bentele | 2020-11-09 07:48:36 +0100 |
commit | 07684ba72271a1307124eb71904f5c5aa1aebe43 (patch) | |
tree | 52a84fdb774e0145b41f872338f44bc4ad2f10e2 /pkg | |
parent | [KERNEL] protect access to server list if alt server is added/removed (diff) | |
download | dnbd3-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 'pkg')
0 files changed, 0 insertions, 0 deletions