From: Andrey Ryabinin <[email protected]>

Signed-off-by: Andrey Ryabinin <[email protected]>

(cherry picked from commit a0f1aed946883bdbce232a77b63d2d9311e39677)
Signed-off-by: Andrey Zhadchenko <[email protected]>

diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index d8ee94a..373e5cf 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -931,6 +931,9 @@ struct nfs_server *nfs_alloc_server(void)
  */
 void nfs_free_server(struct nfs_server *server)
 {
+       if (server->super && !list_empty(&server->super->s_inodes))
+               return;
+
        nfs_server_remove_lists(server);
 
        if (server->destroy != NULL)
-- 
1.8.3.1

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to