]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-replay-prep: simplify IO dependency calculation
authorJason Dillaman <dillaman@redhat.com>
Wed, 7 Oct 2015 18:56:22 +0000 (14:56 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 15 Oct 2015 18:27:20 +0000 (14:27 -0400)
commit8c9e67ad0b21629565a09f6b9b92723b98594f84
tree005a43c9860b3ed5e0e7054b9464d1595cc4beed
parente7406fcba86646a4c3fbac66ee54b52ce3d5a33d
rbd-replay-prep: simplify IO dependency calculation

Only track read-after-write and write-after-write IO dependencies
via the associated write completions.  All IO events after a write
completion are considered to be dependent and can be pruned down
to at most the number of concurrent IOs.  This reduces the prep
time from a simple 'rbd bench-write' from over 4 hrs down to seconds.

Fixes: #13378, #13384
Backport: hammer

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 65fb1b86cbab65023f6207798c9e189bce55dcf6)
src/rbd_replay/actions.cc
src/rbd_replay/actions.hpp
src/rbd_replay/ios.cc
src/rbd_replay/ios.hpp
src/rbd_replay/rbd-replay-prep.cc