]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: request exclusive lock when moving to trash
authorJason Dillaman <dillaman@redhat.com>
Thu, 19 Mar 2020 14:57:03 +0000 (10:57 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 20 Mar 2020 17:18:14 +0000 (13:18 -0400)
commitae726336d274ec9d5e02ecd05ddeab2750ff8959
tree8d9ff9f2bf69fe087a6aa596db95b8b69a4c39aa
parent470ce1c0d763b50f6e9267dda724228094f2b088
librbd: request exclusive lock when moving to trash

Even if the image is in-use, moving it to the trash does not
remove any data. This also solves a race between snapshot-based
mirroring shutting down and being able to move a mirrored image
to the trash.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/api/Trash.cc