]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: add missing shutdown states to managed lock helper
authorJason Dillaman <dillaman@redhat.com>
Tue, 19 Feb 2019 21:06:48 +0000 (16:06 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 16 May 2019 15:31:40 +0000 (11:31 -0400)
commitcbb2ab77cd5dac97db5df1537bc0ea48005c9b63
treed0a2456aeafc01c9eef02ef89d0e3305044f1077
parente634138d958604f6e8314adfa3811920edbf4f79
librbd: add missing shutdown states to managed lock helper

The PRE_SHUTTING_DOWN and SHUTTING_DOWN states were missed
in the 'is_state_shutdown' helper method. This resulted in
rbd-mirror potentially entering an infinite loop during
shutdown.

http://tracker.ceph.com/issues/38387
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 82af5710ad49dd6e24c2736a9865e1a41add89a2)
src/librbd/ManagedLock.cc