]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: restart async requests if lock owner doesn't report progress
authorJason Dillaman <dillaman@redhat.com>
Wed, 25 Feb 2015 17:00:26 +0000 (12:00 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 26 Feb 2015 00:51:07 +0000 (19:51 -0500)
commitc29548519e6f7b8e11099ffae896c84c2f842bc9
tree5c0405efed0fea737031b8991d97c120885d2adc
parentc611936c83465ac1d28112eafc3e7a9afe6c934b
librbd: restart async requests if lock owner doesn't report progress

Detect the case of a crashed lock owner by waiting for up to 30 seconds
for a async request progress message from the leader.  If a progress
message isn't received, restart the request (and possibly take ownership
of the lock).

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/common/config_opts.h
src/librbd/ImageWatcher.cc
src/librbd/ImageWatcher.h