projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix size setting on raw devices
[fio.git]
/
fio.c
diff --git
a/fio.c
b/fio.c
index f6c3fc8fe555ca31e78b7eb1666dfa6ac27185f7..2f0d74012a93a04f0ef464020bebe3f2e913b859 100644
(file)
--- a/
fio.c
+++ b/
fio.c
@@
-412,7
+412,7
@@
static void do_io(struct thread_data *td)
td_set_runstate(td, TD_RUNNING);
td_set_runstate(td, TD_RUNNING);
- while ((td->this_io_bytes[0] + td->this_io_bytes[1]) < td->
io_
size) {
+ while ((td->this_io_bytes[0] + td->this_io_bytes[1]) < td->
o.
size) {
struct timeval comp_time;
long bytes_done = 0;
int min_evts = 0;
struct timeval comp_time;
long bytes_done = 0;
int min_evts = 0;
@@
-735,8
+735,9
@@
static void *thread_main(void *data)
INIT_LIST_HEAD(&td->io_u_freelist);
INIT_LIST_HEAD(&td->io_u_busylist);
INIT_LIST_HEAD(&td->io_u_requeues);
INIT_LIST_HEAD(&td->io_u_freelist);
INIT_LIST_HEAD(&td->io_u_busylist);
INIT_LIST_HEAD(&td->io_u_requeues);
- INIT_LIST_HEAD(&td->io_hist_list);
INIT_LIST_HEAD(&td->io_log_list);
INIT_LIST_HEAD(&td->io_log_list);
+ INIT_LIST_HEAD(&td->io_hist_list);
+ td->io_hist_tree = RB_ROOT;
if (init_io_u(td))
goto err_sem;
if (init_io_u(td))
goto err_sem;