]> git.baikalelectronics.ru Git - kernel.git/commit
NFSD: fix dest to src mount in inter-server COPY
authorOlga Kornievskaia <kolga@netapp.com>
Tue, 9 Mar 2021 14:41:14 +0000 (09:41 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 9 Mar 2021 18:26:59 +0000 (13:26 -0500)
commit281b95befa770a00f498448df5ea525cc1ee4373
tree7c9d3690167970186ee21ca503fe0db32d0badd0
parent56ef59fc7509c913de3bf8685dfe884b59c57811
NFSD: fix dest to src mount in inter-server COPY

A cleanup of the inter SSC copy needs to call fput() of the source
file handle to make sure that file structure is freed as well as
drop the reference on the superblock to unmount the source server.

Fixes: 299b8af154ea ("NFSD: Fix use-after-free warning when doing inter-server copy")
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Dai Ngo <dai.ngo@oracle.com>
fs/nfsd/nfs4proc.c