aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Layton <[email protected]>2024-07-11 15:11:13 -0400
committerChuck Lever <[email protected]>2024-09-01 10:04:54 -0400
commit81a95c2b1d605743220f28db04b8da13a65c4059 (patch)
tree4c2a5bb773174fc855bbd10d83264569ec326b12
parent8e6e2ffa6569a205f1805cbaeca143b556581da6 (diff)
nfsd: remove unneeded EEXIST error check in nfsd_do_file_acquire
Given that we do the search and insertion while holding the i_lock, I don't think it's possible for us to get EEXIST here. Remove this case. 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]>
-rw-r--r--fs/nfsd/filecache.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c
index 01d76f6bc80a..9d7bb65b0746 100644
--- a/fs/nfsd/filecache.c
+++ b/fs/nfsd/filecache.c
@@ -1037,8 +1037,6 @@ retry:
if (likely(ret == 0))
goto open_file;
- if (ret == -EEXIST)
- goto retry;
trace_nfsd_file_insert_err(rqstp, inode, may_flags, ret);
status = nfserr_jukebox;
goto construction_err;