Re: [PATCH] nfsd: delete unreachable confusing code in nfs4_open_delegation()

From: Chuck Lever

Date: Mon Sep 29 2025 - 14:24:29 EST


From: Chuck Lever <chuck.lever@xxxxxxxxxx>

On Mon, 29 Sep 2025 20:35:20 +0300, Matvey Kovalev wrote:
> op_delegate_type is assigned OPEN_DELEGATE_NONE just before the if-block
> where condition specifies it not be equal to OPEN_DELEGATE_NONE. Compiler
> treats the block as unreachable and optimizes it out from the resulting
> executable.
>
> In that aspect commit d08d32e6e5c0 ("nfsd4: return delegation immediately
> if lease fails") notably makes no difference.
>
> [...]

Applied to nfsd-testing, thanks!

[1/1] nfsd: delete unreachable confusing code in nfs4_open_delegation()
commit: c4a007c2d1fd7d96fbc3bd4fb45fbbc748d41789

--
Chuck Lever