X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=server.h;h=5c720d46285166107fbad514b9e6b53d7f8b4961;hb=7fcad9e1cf089289372cc91a85fba0c7e5978474;hp=6c572a180cff40abba3484041789e13ec6a95438;hpb=7903bf87725b18495a06f7199342f167147712eb;p=fio.git diff --git a/server.h b/server.h index 6c572a18..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 = 57, + FIO_SERVER_VER = 61, FIO_SERVER_MAX_FRAGMENT_PDU = 1024, FIO_SERVER_MAX_CMD_MB = 2048,