]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: protect journal replay against overlapping writes 7583/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 11 Feb 2016 00:06:02 +0000 (19:06 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 11 Feb 2016 00:06:02 +0000 (19:06 -0500)
commitb92eb668c119dfa4e611f839cc95fc08869ba11d
tree843e459d888ebca61081940fbf10a8240a09d01a
parentbb662311b4696fada06677631c451b1a36b54a04
librbd: protect journal replay against overlapping writes

If fsx issues a back-to-back synchronous write, these will be
replayed as AIO writes.  If object map is enabled, it's possible
for the two writes to commit to disk out-of-order if the first
write required an object map update.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/journal/Replay.cc
src/librbd/journal/Replay.h
src/test/librbd/journal/test_mock_Replay.cc