]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/Timer: recheck stopping before sleep if we dropped the lock
authorSage Weil <sage@redhat.com>
Fri, 24 Oct 2014 16:20:41 +0000 (09:20 -0700)
committerSage Weil <sage@redhat.com>
Fri, 24 Oct 2014 16:20:41 +0000 (09:20 -0700)
commit48484356bbeae5d4da29861712a48155a1782b15
tree2cfbc6f19bda29de33a8eb988b1ee1580870e961
parent8a9b953b7ca29574f3c6db2dc06732c7d06a9109
common/Timer: recheck stopping before sleep if we dropped the lock

If we have safe_callbacks==false, the stopping flag may have changed while
we were doing our callback. Recheck it and exit to avoid a deadlock on
shutdown.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/Timer.cc