Fix a deadlock and a few memory leaks.
[bluesky.git] / nfs3 / nfs3_prot.h
index 01ed7b5..1a442ba 100644 (file)
@@ -653,6 +653,10 @@ typedef struct {
     /* If frag_len is zero: the number of bytes of the fragment header that
      * have been read so far. */
     int frag_hdr_bytes;
+
+    /* Mutex protecting send operations on the socket (to ensure that replies
+     * are not accidentally interleaved). */
+    GMutex *send_lock;
 } RPCConnection;
 
 /* Linked list of cleanup functions to call when a request is completed. */