X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=server.h;h=5c720d46285166107fbad514b9e6b53d7f8b4961;hp=3a1d0b0205a5e96c6d9cb594d19daeec1bcf3ca1;hb=68bf62a07c0d00c97a0600ce9664b92378a95a91;hpb=43b1215fe09eaac0fca0b2bc49011445ae9b3a53 diff --git a/server.h b/server.h index 3a1d0b02..5c720d46 100644 --- a/server.h +++ b/server.h @@ -12,6 +12,17 @@ #define FIO_NET_PORT 8765 +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 */ +}; + /* * On-wire encoding is little endian */ @@ -38,7 +49,7 @@ struct fio_net_cmd_reply { }; enum { - FIO_SERVER_VER = 60, + FIO_SERVER_VER = 61, FIO_SERVER_MAX_FRAGMENT_PDU = 1024, FIO_SERVER_MAX_CMD_MB = 2048,