]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: commit IO as safe when complete if writeback cache is disabled
authorJason Dillaman <dillaman@redhat.com>
Thu, 31 May 2018 13:29:00 +0000 (09:29 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 31 May 2018 13:29:00 +0000 (09:29 -0400)
commita27269ab95e4cadcade2131367e40ccf1011316a
tree1bd9f6b0df53b565dafd9d3facf4658203cb245b
parent88ef62099c33f61dfeefb1919ae3b9277cce8fa6
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>
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