diff options
author | Yifan Hong <elsk@google.com> | 2019-08-27 18:56:07 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2019-09-05 15:14:34 -0700 |
commit | caaf9a617af7bacaf735586cf6e7ca9a13d7d2ab (patch) | |
tree | d612f31bfc3558712fae26c4b516a01da3d9f602 /init/interface_utils.cpp | |
parent | 27fb95dedfafeef20220294f0a814cec06e9db87 (diff) |
libsnapshot: require ex lock for {Create}{CowImage,Snapshot} / DeleteSnapshot
Create / Deleting the COW image / snapshot changes states, so it makes
sense to require an exclusive lock before doing so. If caller doesn't hold
an exclusive lock, parallel calls to MapCowImage / MapSnapshot / UnmapCowImage /
UnmapSnapshot may have weird results.
Test: libsnapshot_test
Change-Id: I4be660df1059ec24144f8baf43a1c8c05d9e372b
Diffstat (limited to 'init/interface_utils.cpp')
0 files changed, 0 insertions, 0 deletions