]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: retry lock requests periodically until acquired
authorJason Dillaman <dillaman@redhat.com>
Thu, 7 May 2015 16:51:49 +0000 (12:51 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 5 Jun 2015 16:29:32 +0000 (12:29 -0400)
commit37c74e6e5274208d1b6efaf315afec03ea7eaa82
treeac54c4c212ab80fade7bbce269e22884a4a72194
parent2b6d0633d5c89de3a557cdd72621dfc19f0540de
librbd: retry lock requests periodically until acquired

If the exclusive lock owner acks the lock release request but crashes
before it actually releases the lock, the requestor will wait forever.
Therefore, after a certain timeout, retry the request again until it
succeeds.

Fixes: #11537
Backport: hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ImageWatcher.cc