]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: delay commit of overwritten journal event
authorJason Dillaman <dillaman@redhat.com>
Thu, 19 May 2016 19:50:04 +0000 (15:50 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 20 May 2016 12:04:02 +0000 (08:04 -0400)
commite8bf64cc85ffe3d2dda23eab1834f7a5f104f6fe
tree2597087d5d491fb2e8029aa2a51577f59a2148c2
parent0051316effe0b25804378975b117691d7ad08a3b
librbd: delay commit of overwritten journal event

With the cache enabled and write-after-write IOs to the same
object extents, it was possible for the overwritten journal event
to be committed before the overwriter journal event was written
to disk.  If a client crash occurs before the event is written,
the image will be inconsistent on replay.

Fixes: http://tracker.ceph.com/issues/15938
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/LibrbdWriteback.cc