They cause fio to exit replay, but then retry since we didn't meet
our IO limit. When we retry, we attempt to close files that the
trace already closed, and we crash.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
rw = (t->action & BLK_TC_ACT(BLK_TC_WRITE)) != 0;
- if (t->bytes > rw_bs[rw])
+ /*
+ * Need to figure out why 0 byte writes end up here sometimes, for
+ * now just ignore them.
+ */
+ if (!t->bytes)
+ return;
+ else if (t->bytes > rw_bs[rw])
rw_bs[rw] = t->bytes;
ios[rw]++;