Fix bug that causes early termination of fio with verify_backlog
authorJens Axboe <axboe@kernel.dk>
Wed, 7 Mar 2012 08:24:05 +0000 (09:24 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Mar 2012 08:24:05 +0000 (09:24 +0100)
commitf7078f7b517ace62bdf22967c18525b5b6c68b85
tree5548f9530db9c8bdfaa7c82f0746a0898dc1a6fd
parent905c78b90f92bab91555313f7b4bd83d18246139
Fix bug that causes early termination of fio with verify_backlog

Running this job:

[global]
bs=4k
ioengine=sync
size=100m
direct=1
filename=xxx

[write]
verify=md5
verify_backlog=32
rw=write

causes fio to exit when reads + writes have exceeded 100m, where
it should only exit when writes have exceeded 100m. Fix this by
checking the appropriate counters based on what type of job it is.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c