]> 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>
Wed, 7 Oct 2015 20:34:55 +0000 (16:34 -0400)
commit65fb1b86cbab65023f6207798c9e189bce55dcf6
tree0f58000d22c93e6626881b4c80b9c6d463087e4e
parent4f436e10802d7b3c3949b592fec238c189a02c50
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>
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