X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=workqueue.h;h=0a62b5f7d38d1868e63c47fa493c8324a30e042f;hp=46a3979fde6190cc5d23603703334158f1267cf0;hb=604d3f5bd9f2b985568593c23f8292cbc7f4044c;hpb=26de50cf42e452f2f0bc7dde9faca18fd9976991 diff --git a/workqueue.h b/workqueue.h index 46a3979f..0a62b5f7 100644 --- a/workqueue.h +++ b/workqueue.h @@ -1,7 +1,14 @@ #ifndef FIO_RATE_H #define FIO_RATE_H +#include +#include + #include "flist.h" +#include "lib/types.h" + +struct sk_out; +struct thread_data; struct workqueue_work { struct flist_head list; @@ -16,7 +23,8 @@ struct submit_worker { unsigned int index; uint64_t seq; struct workqueue *wq; - void *private; + void *priv; + struct sk_out *sk_out; }; typedef int (workqueue_work_fn)(struct submit_worker *, struct workqueue_work *); @@ -60,7 +68,7 @@ struct workqueue { volatile int wake_idle; }; -int workqueue_init(struct thread_data *td, struct workqueue *wq, struct workqueue_ops *ops, unsigned int max_workers); +int workqueue_init(struct thread_data *td, struct workqueue *wq, struct workqueue_ops *ops, unsigned int max_workers, struct sk_out *sk_out); void workqueue_exit(struct workqueue *wq); void workqueue_enqueue(struct workqueue *wq, struct workqueue_work *work);