]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: do not try to open parent journal when removing trash snapshot
authorMykola Golub <mgolub@suse.com>
Tue, 29 Oct 2019 14:39:09 +0000 (16:39 +0200)
committerMykola Golub <mgolub@suse.com>
Wed, 20 Nov 2019 08:17:47 +0000 (10:17 +0200)
commitbb7890013bed2013352aeeaeaf2fe69d43984d28
tree41295a930bcfc6b6d496088d9825b9112e36f252
parent4b1830f2876b3c65408a6667dea2d176b8a24672
librbd: do not try to open parent journal when removing trash snapshot

Because the parent may be not promoted. Also disallow any proxied
maintenance operations before acquiring the lock.

Fixes: https://tracker.ceph.com/issues/42405
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit 23e300cbf99987902669baeb6486d9ad37c8c69d)

Conflicts:
src/librbd/image/DetachChildRequest.cc (headers,
                                        RWLock::RLocker vs std::shared_lock,
                                        snap_lock vs image_lock)
src/librbd/image/DetachChildRequest.cc
src/test/librbd/image/test_mock_DetachChildRequest.cc