commit | e4f54adb2aa0aec54f92f3e67eb7353e229bef95 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Mon Feb 04 10:56:07 2008 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Mon Feb 04 10:56:07 2008 +0100 |
tree | 311281dfa7f6a38359a3d204699b82dd317b2109 | |
parent | b271fe62101e84cd6ca2a78c92299beba251db24 [diff] [blame] |
Decrement io_issue count when requeuing an io_u Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/io_u.c b/io_u.c index bd7df0c..511f2e9 100644 --- a/io_u.c +++ b/io_u.c
@@ -331,6 +331,9 @@ struct io_u *__io_u = *io_u; __io_u->flags |= IO_U_F_FREE; + if ((__io_u->flags & IO_U_F_FLIGHT) && (__io_u->ddir != DDIR_SYNC)) + td->io_issues[__io_u->ddir]--; + __io_u->flags &= ~IO_U_F_FLIGHT; list_del(&__io_u->list);