[Devel] [PATCH RH8 2/4] fs/nfs: more leaks for busy inodes case.
Andrey Zhadchenko
andrey.zhadchenko at virtuozzo.com
Wed Jun 16 17:42:33 MSK 2021
From: Andrey Ryabinin <aryabinin at virtuozzo.com>
Signed-off-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
(cherry picked from commit a0f1aed946883bdbce232a77b63d2d9311e39677)
Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>
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
More information about the Devel
mailing list