diff options
author | Simon Rettberg | 2019-08-02 16:58:34 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-08-02 16:58:34 +0200 |
commit | b7af3a8c36426811762bf331e3938f9d67b7429e (patch) | |
tree | 09ea38075824d6c0ee94e0105ee3eff191cf6691 /src/server/integrity.c | |
parent | i[SERVER] Include new pretendClient in config dump (diff) | |
download | dnbd3-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