]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
NFSD: fix leaked reference count of nfsd4_ssc_umount_item
authorDai Ngo <dai.ngo@oracle.com>
Tue, 24 Jan 2023 05:34:13 +0000 (21:34 -0800)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 14 Mar 2023 15:46:48 +0000 (16:46 +0100)
commitb7d569e4e48ecd90e4fb7060cfa4c853d4753d86
treec5c9b2c0f7923ffba0cf0019b2f624583f52ff9b
parentf70de0a1fa3414c190430c0ec60a50a88059e87a
NFSD: fix leaked reference count of nfsd4_ssc_umount_item

BugLink: https://bugs.launchpad.net/bugs/2011425
[ Upstream commit 34e8f9ec4c9ac235f917747b23a200a5e0ec857b ]

The reference count of nfsd4_ssc_umount_item is not decremented
on error conditions. This prevents the laundromat from unmounting
the vfsmount of the source file.

This patch decrements the reference count of nfsd4_ssc_umount_item
on error.

Fixes: f4e44b393389 ("NFSD: delay unmount source's export after inter-server copy completed.")
Signed-off-by: Dai Ngo <dai.ngo@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
fs/nfsd/nfs4proc.c