]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: properly order maintenance ops journal events
authorJason Dillaman <dillaman@redhat.com>
Thu, 17 Dec 2015 04:17:22 +0000 (23:17 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 15 Jan 2016 15:40:28 +0000 (10:40 -0500)
commitbf7a1f62a67aaffef72f346a886c9a11711c2b13
treeea9152891fe9821c8da4f385b1298a5a40ae1c17
parentac86521bb608f297ac135f9614f23428dd67b8b6
librbd: properly order maintenance ops journal events

In general, the op shoud only start after the jouranl event is
safely committed.  Snapshot create and resize need special treatment
to record the event while no IO is in-progress.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
14 files changed:
src/librbd/AioImageRequest.cc
src/librbd/AsyncRequest.h
src/librbd/Journal.cc
src/librbd/Journal.h
src/librbd/internal.cc
src/librbd/object_map/SnapshotRemoveRequest.h
src/librbd/operation/RebuildObjectMapRequest.cc
src/librbd/operation/Request.cc
src/librbd/operation/Request.h
src/librbd/operation/ResizeRequest.cc
src/librbd/operation/ResizeRequest.h
src/librbd/operation/SnapshotCreateRequest.cc
src/librbd/operation/SnapshotCreateRequest.h
src/librbd/operation/TrimRequest.h