]> git.apps.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>
Mon, 25 Feb 2019 18:31:43 +0000 (13:31 -0500)
commit82af5710ad49dd6e24c2736a9865e1a41add89a2
treed73ca4359d451c65d77b1360a771bd12d80fc8d3
parent9d694ba3515f6077d2f66b272d3df1ab082b7bea
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>
src/librbd/ManagedLock.cc