[Devel] [PATCH RHEL8 COMMIT] fs/nfs: more leaks for busy inodes case.

Konstantin Khorenko khorenko at virtuozzo.com
Thu Jun 17 18:18:01 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.44
------>
commit 37c007f6f2ed291b47bce56df2df9b198b423c54
Author: Andrey Ryabinin <aryabinin at virtuozzo.com>
Date:   Thu Jun 17 18:18:01 2021 +0300

    fs/nfs: more leaks for busy inodes case.
    
    Signed-off-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
    
    (cherry picked from vz7 commit a0f1aed94688 ("fs/nfs: more leaks for busy inodes
    case."))
    
    Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>
---
 fs/nfs/client.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index d8ee94a109e7..373e5cf3a3f6 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -931,6 +931,9 @@ EXPORT_SYMBOL_GPL(nfs_alloc_server);
  */
 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)


More information about the Devel mailing list