projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b271fe6
)
Decrement io_issue count when requeuing an io_u
author
Jens Axboe
<jens.axboe@oracle.com>
Mon, 4 Feb 2008 09:56:07 +0000
(10:56 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Mon, 4 Feb 2008 09:56:07 +0000
(10:56 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
io_u.c
patch
|
blob
|
blame
|
history
diff --git
a/io_u.c
b/io_u.c
index bd7df0cf7f1eb2b8cd37aeada79427a3cae65af2..511f2e9b0e107c31b704b384e10ab99c58d041c6 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-331,6
+331,9
@@
void requeue_io_u(struct thread_data *td, struct io_u **io_u)
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);