nfsd: make client_lock per net
[pandora-kernel.git] / fs / nfsd / netns.h
index 9a98a0a..08d5fa1 100644 (file)
@@ -71,8 +71,19 @@ struct nfsd_net {
        /*
         * client_lru holds client queue ordered by nfs4_client.cl_time
         * for lease renewal.
+        *
+        * close_lru holds (open) stateowner queue ordered by nfs4_stateowner.so_time
+        * for last close replay.
+        *
+        * All of the above fields are protected by the client_mutex.
         */
        struct list_head client_lru;
+       struct list_head close_lru;
+
+       struct delayed_work laundromat_work;
+
+       /* client_lock protects the client lru list and session hash table */
+       spinlock_t client_lock;
 };
 
 extern int nfsd_net_id;