Re: [PATCH] lockd: don't allow locking on reexported NFSv2/3
From: Chuck Lever
Date: Fri Oct 24 2025 - 09:53:15 EST
From: Chuck Lever <chuck.lever@xxxxxxxxxx>
On Thu, 23 Oct 2025 09:12:39 -0400, Jeff Layton wrote:
> Since commit 9254c8ae9b81 ("nfsd: disallow file locking and delegations
> for NFSv4 reexport"), file locking when reexporting an NFS mount via
> NFSv4 is expressly prohibited by nfsd. Do the same in lockd:
>
> Add a new nlmsvc_file_cannot_lock() helper that will test whether file
> locking is allowed for a given file, and return nlm_lck_denied_nolocks
> if it isn't.
>
> [...]
Applied to nfsd-testing, thanks!
[1/1] lockd: don't allow locking on reexported NFSv2/3
commit: 49d93cbe598561458a1da11dceb2e26891d019e3
--
Chuck Lever