]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfsd: remove unneeded EEXIST error check in nfsd_do_file_acquire
authorJeff Layton <jlayton@kernel.org>
Thu, 11 Jul 2024 19:11:13 +0000 (15:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:33:09 +0000 (16:33 +0200)
commitf490e015aa7b45edba42fc098771b7baf389585e
tree07b2aaa9fc819e83b4979c466d8c2bd86f4c4f4c
parentf1ceb401347b61f8e2f0911522442be2e6cb5168
nfsd: remove unneeded EEXIST error check in nfsd_do_file_acquire

[ Upstream commit 81a95c2b1d605743220f28db04b8da13a65c4059 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfsd/filecache.c