From 163f849eea2b0ce443825fa510a1cb311092a234 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 4 Feb 2008 10:56:26 +0100 Subject: [PATCH] Improve depth marking Signed-off-by: Jens Axboe --- ioengines.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ioengines.c b/ioengines.c index 77c45f7f..979ac283 100644 --- a/ioengines.c +++ b/ioengines.c @@ -226,10 +226,11 @@ int td_io_queue(struct thread_data *td, struct io_u *io_u) if (io_u->ddir != DDIR_SYNC) td->io_issues[io_u->ddir]++; - io_u_mark_depth(td, io_u); - ret = td->io_ops->queue(td, io_u); + if (ret != FIO_Q_BUSY) + io_u_mark_depth(td, io_u); + if (ret == FIO_Q_QUEUED) { int r; -- 2.25.1