diff options
author | 2024-07-11 15:11:13 -0400 | |
---|---|---|
committer | 2024-09-01 10:04:54 -0400 | |
commit | 81a95c2b1d605743220f28db04b8da13a65c4059 (patch) | |
tree | 4c2a5bb773174fc855bbd10d83264569ec326b12 | |
parent | nfsd: add list_head nf_gc to struct nfsd_file (diff) | |
download | wireguard-linux-81a95c2b1d605743220f28db04b8da13a65c4059.tar.xz wireguard-linux-81a95c2b1d605743220f28db04b8da13a65c4059.zip |
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 <jlayton@kernel.org>
Tested-by: Youzhong Yang <youzhong@gmail.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
-rw-r--r-- | fs/nfsd/filecache.c | 2 |
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; |