summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2021-01-12 23:04:02 -0800
committerDavid Anderson <dvander@google.com>2021-01-12 23:21:57 -0800
commit476f38df6171b838a6c3b0c3c953dc9bf3ce7607 (patch)
tree08d6dd0e96e50482ed29f6cafc17beeb596719e8 /trusty/coverage/coverage.cpp
parent8bf21eab94606e4f807a85383152331ee4189ad0 (diff)
libsnapshot: Fix a race condition in WaitForDelete.
WaitForDelete is supposed to block until close() has been called on the COW image. However, it could race with the destructor for Snapuserd since nothing guaranteed it was freed within the global lock. This patch fixes the bug and refactors the surrounding code to make the responsibilities of each thread clearer. Bug: N/A Test: vts_libsnapshot_test Change-Id: Icfc264e6dff378db585c81cde381cc24269f4800
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions