server: ensure each connection sets up its own sk_out
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index e4f778ebf15299e2b92aa4b2a46a86cde3d323e2..fb527dab501c1051a0dbd87468cf7968f737c782 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -107,6 +107,14 @@ enum {
        RATE_PROCESS_POISSON = 1,
 };
 
+/*
+ * Per-thread/process specific data. Only used for the network client
+ * for now.
+ */
+struct sk_out;
+void sk_out_assign(struct sk_out *);
+void sk_out_drop(void);
+
 /*
  * This describes a single thread/process executing a fio job.
  */
@@ -129,7 +137,7 @@ struct thread_data {
        struct io_log *bw_log;
        struct io_log *iops_log;
 
-       struct tp_data *tp_data;
+       struct workqueue log_compress_wq;
 
        struct thread_data *parent;
 
@@ -468,7 +476,7 @@ extern int __must_check fio_init_options(void);
 extern int __must_check parse_options(int, char **);
 extern int parse_jobs_ini(char *, int, int, int);
 extern int parse_cmd_line(int, char **, int);
-extern int fio_backend(void);
+extern int fio_backend(struct sk_out *);
 extern void reset_fio_state(void);
 extern void clear_io_state(struct thread_data *, int);
 extern int fio_options_parse(struct thread_data *, char **, int, int);