]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: commit IO as safe when complete if writeback cache is disabled 22370/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 31 May 2018 13:29:00 +0000 (09:29 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 1 Jun 2018 13:14:17 +0000 (09:14 -0400)
commit2de4e30240fc1e7e141623272e7408c2b49facc8
treeb011cf41af28cf9c1fbd7e7dc2262d18db0ef632
parent51c205873c41efbd0438680441fdff2be375a442
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)

Conflicts:
src/test/rbd_mirror/test_ImageReplayer.cc: removed "md_config_t::get_val" usage
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