]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: commit IO as safe when complete if writeback cache is disabled 22549/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 31 May 2018 13:29:00 +0000 (09:29 -0400)
committerNathan Cutler <ncutler@suse.com>
Wed, 13 Jun 2018 14:44:39 +0000 (16:44 +0200)
commit2e82bfdf7aec640feef14dec43e285b31940e48c
treec26477ce62ef2b727eab9752f98cd44b75e4982f
parent9858c4dc4b5d2176d0bd59ab3f8a348054a378a4
librbd: commit IO as safe when complete if writeback cache is disabled

We do not need to flush IO to ensure its safe if the writeback cache is
disabled when performing a journal replay. Instead, immediately mark the
IO as safe and let the journal's periodic commit throttle handle updating
the position.

Fixes: http://tracker.ceph.com/issues/23516
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit a27269ab95e4cadcade2131367e40ccf1011316a)
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/journal/Replay.cc
src/librbd/journal/Replay.h
src/test/librbd/journal/test_mock_Replay.cc
src/test/librbd/mock/MockImageCtx.h
src/test/rbd_mirror/test_ImageReplayer.cc