If file is already filled, it's a requeue. In that case, don't grab
a new io_piece, we already filled the offsets in the io_u.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
+ /*
+ * this io_u is from a requeue, we already filled the offsets
+ */
+ if (io_u->file)
+ return 0;
+
if (!list_empty(&td->io_hist_list)) {
ipo = list_entry(td->io_hist_list.next, struct io_piece, list);
if (!list_empty(&td->io_hist_list)) {
ipo = list_entry(td->io_hist_list.next, struct io_piece, list);