projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6da1fa7
)
[PATCH] Reversed order of thinktime_blocks modulo operation
author
Jens Axboe
<jens.axboe@oracle.com>
Wed, 10 Jan 2007 10:33:14 +0000
(11:33 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Wed, 10 Jan 2007 10:33:14 +0000
(11:33 +0100)
We wish to find the remainder of block count vs thinktime_blocks,
not the other way around. This makes thinktime_blocks work correctly.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fio.c
patch
|
blob
|
blame
|
history
diff --git
a/fio.c
b/fio.c
index 28f6376dfeac917305280324aafa822ff9e9e3f8..dd52626469a0358cdbacc062d02058b19f148825 100644
(file)
--- a/
fio.c
+++ b/
fio.c
@@
-452,7
+452,7
@@
static void do_io(struct thread_data *td)
unsigned long long b;
b = td->io_blocks[0] + td->io_blocks[1];
- if (!(
td->thinktime_blocks % b
))
+ if (!(
b % td->thinktime_blocks
))
usec_sleep(td, td->thinktime);
}
}