[lvc-project] [PATCH] nfsd: delete unreachable confusing code	in nfs4_open_delegation()
    Chuck Lever 
    cel at kernel.org
       
    Mon Sep 29 21:24:25 MSK 2025
    
    
  
From: Chuck Lever <chuck.lever at oracle.com>
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
    
    
More information about the lvc-project
mailing list