X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=server.h;h=fff680405d2a7220e904c8d3714f337d9e4c4059;hb=40c494710bb1e9b5da1a4fc0d1452c31c7cc9da1;hp=3a1d0b0205a5e96c6d9cb594d19daeec1bcf3ca1;hpb=43b1215fe09eaac0fca0b2bc49011445ae9b3a53;p=fio.git diff --git a/server.h b/server.h index 3a1d0b02..fff68040 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 = 62, FIO_SERVER_MAX_FRAGMENT_PDU = 1024, FIO_SERVER_MAX_CMD_MB = 2048,