summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2026-04-19 21:53:01 +0300
committerChuck Lever <cel@kernel.org>2026-06-09 23:32:59 +0300
commit0a7c2aa5844c9ad57bee914d46bc1f84b2fd96a0 (patch)
treed7f69fefead0f308a21b2215f768d2797f3602e1 /include/uapi/linux
parent86b9898920a6d02b4149f4fef9efd77b8aa3b9ca (diff)
downloadlinux-0a7c2aa5844c9ad57bee914d46bc1f84b2fd96a0.tar.xz
NFSD: Extract revoke_one_stid() utility function
The per-stateid revocation logic in nfsd4_revoke_states() handles four stateid types in a deeply nested switch. Extract two helpers: revoke_ol_stid() performs admin-revocation of an open or lock stateid with st_mutex already held: marks the stateid as SC_STATUS_ADMIN_REVOKED, closes POSIX locks for lock stateids, and releases file access. revoke_one_stid() dispatches by sc_type, acquires st_mutex with the appropriate lockdep class for open and lock stateids, and handles delegation unhash and layout close inline. No functional change. Preparation for adding export-scoped state revocation which reuses revoke_one_stid(). Reviewed-by: Jeff Layton <jlayton@kernel.org> Tested-by: Dai Ngo <dai.ngo@oracle.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions