summaryrefslogtreecommitdiffstats
path: root/src/server/integrity.c
diff options
context:
space:
mode:
authorSimon Rettberg2019-08-02 16:58:34 +0200
committerSimon Rettberg2019-08-02 16:58:34 +0200
commitb7af3a8c36426811762bf331e3938f9d67b7429e (patch)
tree09ea38075824d6c0ee94e0105ee3eff191cf6691 /src/server/integrity.c
parenti[SERVER] Include new pretendClient in config dump (diff)
downloaddnbd3-b7af3a8c36426811762bf331e3938f9d67b7429e.tar.gz
dnbd3-b7af3a8c36426811762bf331e3938f9d67b7429e.tar.xz
dnbd3-b7af3a8c36426811762bf331e3938f9d67b7429e.zip
[SERVER] Make image->users atomic and get rid of some locking
With this change it should be safe to read the users count of an image without locking first, assuming you already have a reference on the image or are otherwise sure it cannot be freed, i.e. in an active uplink. Updating users, or checking whether it's 0 in order to free the image should only be done while holding the imageListLock.
Diffstat (limited to 'src/server/integrity.c')
0 files changed, 0 insertions, 0 deletions