]> 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>
Wed, 29 Jul 2015 17:29:54 +0000 (13:29 -0400)
commit704c0e09479d435ecbb84693a786c60694732b19
tree13657507435434230ac13a5968c94a2084edc6f5
parentdbaaed9cf99121d0c97c22a695a7a6e872a11f48
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>
(cherry picked from commit 37c74e6e5274208d1b6efaf315afec03ea7eaa82)
src/librbd/ImageWatcher.cc