]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: always try to acquire exclusive lock when removing image 29869/head
authorMykola Golub <mgolub@suse.com>
Tue, 20 Aug 2019 14:39:38 +0000 (15:39 +0100)
committerMykola Golub <mgolub@suse.com>
Fri, 6 Sep 2019 06:28:17 +0000 (09:28 +0300)
commitf8516599843791a5c3c949537266ea76cb2fc6d0
treeae7f8e899e38bafcb83b94811d00aaeaa113ca1c
parenta2c46bd9bcbea6a9bdcc4d5a0414e18094c33c3e
librbd: always try to acquire exclusive lock when removing image

We want it to use object map for fast removal.

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

Conflicts:
  src/librbd/image/PreRemoveRequest.cc: RWLock instead of std::shared_lock
src/librbd/image/PreRemoveRequest.cc
src/librbd/image/PreRemoveRequest.h
src/test/librbd/image/test_mock_PreRemoveRequest.cc