projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move fls.h in with the other lib helpers
[fio.git]
/
io_u.c
diff --git
a/io_u.c
b/io_u.c
index 927e161177d97ead31a03c44f436086ea5103f06..57b991ae2aa050f3a97191ed7ec3cb8decc4f59f 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-354,8
+354,8
@@
void put_io_u(struct thread_data *td, struct io_u *io_u)
put_file_log(td, io_u->file);
io_u->file = NULL;
put_file_log(td, io_u->file);
io_u->file = NULL;
- list_del(&io_u->list);
- list_add(&io_u->list, &td->io_u_freelist);
+
f
list_del(&io_u->list);
+
f
list_add(&io_u->list, &td->io_u_freelist);
td->cur_depth--;
}
td->cur_depth--;
}
@@
-371,8
+371,8
@@
void requeue_io_u(struct thread_data *td, struct io_u **io_u)
__io_u->flags &= ~IO_U_F_FLIGHT;
__io_u->flags &= ~IO_U_F_FLIGHT;
- list_del(&__io_u->list);
- list_add_tail(&__io_u->list, &td->io_u_requeues);
+
f
list_del(&__io_u->list);
+
f
list_add_tail(&__io_u->list, &td->io_u_requeues);
td->cur_depth--;
*io_u = NULL;
}
td->cur_depth--;
*io_u = NULL;
}
@@
-764,10
+764,10
@@
struct io_u *__get_io_u(struct thread_data *td)
{
struct io_u *io_u = NULL;
{
struct io_u *io_u = NULL;
- if (!list_empty(&td->io_u_requeues))
- io_u = list_entry(td->io_u_requeues.next, struct io_u, list);
+ if (!
f
list_empty(&td->io_u_requeues))
+ io_u =
f
list_entry(td->io_u_requeues.next, struct io_u, list);
else if (!queue_full(td)) {
else if (!queue_full(td)) {
- io_u = list_entry(td->io_u_freelist.next, struct io_u, list);
+ io_u =
f
list_entry(td->io_u_freelist.next, struct io_u, list);
io_u->buflen = 0;
io_u->resid = 0;
io_u->buflen = 0;
io_u->resid = 0;
@@
-780,8
+780,8
@@
struct io_u *__get_io_u(struct thread_data *td)
io_u->flags &= ~IO_U_F_FREE;
io_u->error = 0;
io_u->flags &= ~IO_U_F_FREE;
io_u->error = 0;
- list_del(&io_u->list);
- list_add(&io_u->list, &td->io_u_busylist);
+
f
list_del(&io_u->list);
+
f
list_add(&io_u->list, &td->io_u_busylist);
td->cur_depth++;
}
td->cur_depth++;
}
@@
-1060,7
+1060,7
@@
static void io_u_timeout_handler(int fio_unused sig)
{
struct thread_data *td, *__td;
pid_t pid = getpid();
{
struct thread_data *td, *__td;
pid_t pid = getpid();
- struct list_head *entry;
+ struct
f
list_head *entry;
struct io_u *io_u;
int i;
struct io_u *io_u;
int i;
@@
-1089,8
+1089,8
@@
static void io_u_timeout_handler(int fio_unused sig)
log_err("fio: io_u timeout: job=%s, pid=%d\n", td->o.name, td->pid);
log_err("fio: io_u timeout: job=%s, pid=%d\n", td->o.name, td->pid);
- list_for_each(entry, &td->io_u_busylist) {
- io_u = list_entry(entry, struct io_u, list);
+
f
list_for_each(entry, &td->io_u_busylist) {
+ io_u =
f
list_entry(entry, struct io_u, list);
io_u_dump(io_u);
}
io_u_dump(io_u);
}