]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: avoid completing mirror:DisableRequest while holding its lock 35126/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 14 May 2020 18:01:35 +0000 (14:01 -0400)
committerNathan Cutler <ncutler@suse.com>
Tue, 19 May 2020 12:01:38 +0000 (14:01 +0200)
commita502c62eeb04f428f30c3264abeb53f9f9edc1aa
tree0989ce3c0796fc4cd9b2ae9e3273ba8368d49d88
parent725862285b7ec29b03d1150b8b57c42a67a20fa1
librbd: avoid completing mirror:DisableRequest while holding its lock

Ensure that the lock is released before another thread has the chance
to complete the state machine and attempt to destruct the in-use lock.

Fixes: https://tracker.ceph.com/issues/45544
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit c45324a14f6bb02896549d5f79ad42f942afb5d1)
src/librbd/mirror/DisableRequest.cc