Re: [PATCH v2] nfsd: don't block on a file lease while holding the parent lock

From: Chuck Lever

Date: Wed Nov 11 2026 - 11:04:29 EST


On Wed, 11 Nov 2026 15:48:35 +0800, Zhan Xusheng wrote:
> Since commit 2a60db3525d4 ("nfsd: (almost) always open file in
> nfsd4_create_file()"), an NFSv4 OPEN with create that finds an
> existing file opens it with dentry_open() while start_creating()
> still holds the parent directory lock. The open flags lack
> O_NONBLOCK, so break_lease() in do_dentry_open() blocks. Before that
> commit the file was opened later by __nfsd_open(), which breaks
> leases with O_NONBLOCK, and the client retried on NFS4ERR_DELAY.
>
> [...]

Applied to nfsd-testing, thanks!

[1/1] nfsd: don't block on a file lease while holding the parent lock
commit: 9d9a3e68a2f8a7d69d597c65cc52026456edbf6c

--
Chuck Lever <cel@xxxxxxxxxx>