diff options
author | Dai Ngo <dai.ngo@oracle.com> | 2025-05-13 09:10:51 -0700 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2025-07-14 12:46:36 -0400 |
commit | 3b8737ce5bd4a9fcfede7d966f824e321d9066d4 (patch) | |
tree | f997457fa393b136d36886c5fd0c61797bda9c65 /fs/nfsd/state.h | |
parent | e7a8ebc305f26cab608e59a916a4ae89d6656c5f (diff) |
NFSD: release read access of nfs4_file when a write delegation is returned
When a write delegation is returned, check if read access was added
to nfs4_file when client opens file with WRONLY, and release it.
Signed-off-by: Dai Ngo <dai.ngo@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r-- | fs/nfsd/state.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index 1995bca158b8..8adc2550129e 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h @@ -665,6 +665,7 @@ struct nfs4_file { atomic_t fi_access[2]; u32 fi_share_deny; struct nfsd_file *fi_deleg_file; + struct nfsd_file *fi_rdeleg_file; int fi_delegees; struct knfsd_fh fi_fhandle; bool fi_had_conflict; |