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
commitcadab3b844cb84d2db08c6db9708fc92763299f3 (patch)
tree08d6dd0e96e50482ed29f6cafc17beeb596719e8 /trusty/coverage/coverage.cpp
parent8376d87e2da39b9a3fe1034f3ce0a5ecbc4d6369 (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