-static void io_workqueue_fn(struct thread_data *td, struct io_u *io_u)
-{
- const enum fio_ddir ddir = io_u->ddir;
- int ret;
-
- dprint(FD_RATE, "io_u %p queued by %u\n", io_u, gettid());
-
- io_u_set(io_u, IO_U_F_NO_FILE_PUT);
-
- td->cur_depth++;
-
- ret = td_io_queue(td, io_u);
-
- dprint(FD_RATE, "io_u %p ret %d by %u\n", io_u, ret, gettid());
-
- io_queue_event(td, io_u, &ret, ddir, NULL, 0, NULL);
-
- if (ret == FIO_Q_QUEUED)
- ret = io_u_queued_complete(td, 1);
-
- td->cur_depth--;
-}