]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: inform the journal when pending IO safely commits
authorJason Dillaman <dillaman@redhat.com>
Wed, 15 Jul 2015 21:32:28 +0000 (17:32 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 13 Nov 2015 04:27:06 +0000 (23:27 -0500)
commitfc8b8d628e26168f207134d088de250d6dab1fdb
tree70b23d028323dc6206c3a35c6d1a4a77ac28f09b
parent00390414699f290275d40f3fa46b58fccaab0ca6
librbd: inform the journal when pending IO safely commits

When caching is disabled, the AioCompletion notifies the journal that
the update is safe.  When caching is enabled, writeback can result
in partial write extents being overwritten (and no longer associated
to the original journal event).  In this case, the writeback handler
is responsible for informing the journal when writes are safe.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/AioCompletion.cc
src/librbd/AioCompletion.h
src/librbd/AioImageRequest.cc
src/librbd/Journal.cc