summaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorTomohiro Kusumi <tkusumi@tuxera.com>2017-03-20 23:28:42 +0200
committerJens Axboe <axboe@fb.com>2017-03-21 07:16:11 -0600
commit0cf59b52d81ec0c70c60b9516b2e740f408b9d1c (patch)
tree9dc9c55f71c81336df520d30afddb8f81d210a98 /server.c
parent356ef1a19ee4487ece7b4295347b37491d2bf727 (diff)
downloadfio-0cf59b52d81ec0c70c60b9516b2e740f408b9d1c.tar.gz
fio-0cf59b52d81ec0c70c60b9516b2e740f408b9d1c.tar.bz2
Define struct sk_out in server.h (not server.c)
struct sk_out isn't local to server.c, so it should be visible in its header (instead of having struct sk_out; in fio.h). Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'server.c')
-rw-r--r--server.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/server.c b/server.c
index 6d5d4ea3..1b3bc30a 100644
--- a/server.c
+++ b/server.c
@@ -50,17 +50,6 @@ struct sk_entry {
struct flist_head next; /* Other sk_entry's, if linked command */
};
-struct sk_out {
- unsigned int refs; /* frees sk_out when it drops to zero.
- * protected by below ->lock */
-
- int sk; /* socket fd to talk to client */
- struct fio_mutex lock; /* protects ref and below list */
- struct flist_head list; /* list of pending transmit work */
- struct fio_mutex wait; /* wake backend when items added to list */
- struct fio_mutex xmit; /* held while sending data */
-};
-
static char *fio_server_arg;
static char *bind_sock;
static struct sockaddr_in saddr_in;