]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: simplify state machine lock assumptions
authorJason Dillaman <dillaman@redhat.com>
Tue, 11 Aug 2015 15:42:02 +0000 (11:42 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 17 Nov 2015 20:05:38 +0000 (15:05 -0500)
commit2e17bdc8de5723b78e4c2bd7cee8227e4619102e
tree209b2717e47c0889a04724ec93b225f344c8fe78
parentdaa75945f34f2c185c8ab4db2af942c3aee07623
librbd: simplify state machine lock assumptions

Use asynchronous callbacks to ensure that no locks are held when
re-entering a state machine.  This helps to avoid odd edge conditions
where locks may or may not be held depending on whether a AIO
operation was required.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/AsyncObjectThrottle.cc
src/librbd/AsyncObjectThrottle.h
src/librbd/FlattenRequest.cc
src/librbd/RebuildObjectMapRequest.cc
src/librbd/TrimRequest.cc