summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorMatvey Kovalev <matvey.kovalev@ispras.ru>2025-09-29 20:35:20 +0300
committerChuck Lever <chuck.lever@oracle.com>2025-11-16 18:20:11 -0500
commitbfce8e4273d81a1d056ed3d79a27e1b2c4f60759 (patch)
tree6cae04c510c4b01c61075030aa77691996202800 /tools/lib/python/kdoc/python_version.py
parentccd608e29b7a73b7bee45b06bfeef088a97c4c92 (diff)
nfsd: delete unreachable confusing code in nfs4_open_delegation()
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. Seems it's better to just drop this code instead of fiddling with memory barriers or atomics. Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Matvey Kovalev <matvey.kovalev@ispras.ru> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions