]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: simplify state machine handling of exclusive lock
authorJason Dillaman <dillaman@redhat.com>
Thu, 30 Apr 2015 20:04:28 +0000 (16:04 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 28 Jul 2015 20:36:35 +0000 (16:36 -0400)
commitacf5125fe27fb3b9de8b97c4e44fa1f5c61147fd
treeb346c1c39e6f56f41609793fadfd8b331d78957f
parent9454f04e62ece39fdcdbb4eb5a83945f76bcc0a5
librbd: simplify state machine handling of exclusive lock

It is expected that all IO is flushed and all async ops are cancelled
prior to releasing the exclusive lock.  Therefore, replace handling of
lost exclusive locks in state machines with an assertion.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit d6b733dbdd0aeb5d1e136dcbf30c58c80952651e)
src/librbd/AioRequest.cc
src/librbd/AioRequest.h
src/librbd/AsyncFlattenRequest.cc
src/librbd/AsyncResizeRequest.cc
src/librbd/AsyncTrimRequest.cc
src/librbd/AsyncTrimRequest.h