diff options
| author | Jeff Layton <[email protected]> | 2024-07-10 13:05:32 +0000 |
|---|---|---|
| committer | Chuck Lever <[email protected]> | 2024-09-01 14:04:54 +0000 |
| commit | 8a7926176378460e0d91e02b03f0ff20a8709a60 (patch) | |
| tree | 5643739511450b1a7d3bfdda7232f2725f009c65 /rust/helpers/task.c | |
| parent | nfsd: remove unneeded EEXIST error check in nfsd_do_file_acquire (diff) | |
| download | kernel-8a7926176378460e0d91e02b03f0ff20a8709a60.tar.gz kernel-8a7926176378460e0d91e02b03f0ff20a8709a60.zip | |
nfsd: fix refcount leak when file is unhashed after being found
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 <[email protected]>
Tested-by: Youzhong Yang <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions
