]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
NFS: nfs4_bitmask_adjust() must not change the server global bitmasks
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 25 Mar 2021 22:15:36 +0000 (18:15 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 12 Apr 2021 21:14:17 +0000 (17:14 -0400)
commit332d1a0373be32a3a3c152756bca45ff4f4e11b5
tree6840690b50cda449b56d73efbf9bab75294ef59c
parentbeab450d8ea93cdf4c6cb7714bdc31a9e0f34738
NFS: nfs4_bitmask_adjust() must not change the server global bitmasks

As currently set, the calls to nfs4_bitmask_adjust() will end up
overwriting the contents of the nfs_server cache_consistency_bitmask
field.
The intention here should be to modify a private copy of that mask in
the close/delegreturn/write arguments.

Fixes: 76bd5c016ef4 ("NFSv4: make cache consistency bitmask dynamic")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c
include/linux/nfs_xdr.h