Home
last modified time | relevance | path

Searched hist:a685bc3524f3f03430c97533357a69c26896bdae (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/nfsd/
H A Dfilecache.cdiff a685bc3524f3f03430c97533357a69c26896bdae Wed Jul 10 08:05:32 CDT 2024 Jeff Layton <jlayton@kernel.org> nfsd: fix refcount leak when file is unhashed after being found

[ Upstream commit 8a7926176378460e0d91e02b03f0ff20a8709a60 ]

If we wait_for_construction and find that the file is no longer hashed,
and we're going to retry the open, the old nfsd_file reference is
currently leaked. Put the reference before retrying.

Fixes: c6593366c0bf ("nfsd: don't kill nfsd_files because of lease break error")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Tested-by: Youzhong Yang <youzhong@gmail.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>