Skip to content

Commit 81a95c2

Browse files
jtlaytonchucklever
authored andcommitted
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: c659336 ("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]>
1 parent 8e6e2ff commit 81a95c2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/nfsd/filecache.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,8 +1037,6 @@ nfsd_file_do_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp,
10371037
if (likely(ret == 0))
10381038
goto open_file;
10391039

1040-
if (ret == -EEXIST)
1041-
goto retry;
10421040
trace_nfsd_file_insert_err(rqstp, inode, may_flags, ret);
10431041
status = nfserr_jukebox;
10441042
goto construction_err;

0 commit comments

Comments
 (0)