]> git.baikalelectronics.ru Git - 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)
commitfd717101febca42da07d0ede122667b89efd5f07
tree6840690b50cda449b56d73efbf9bab75294ef59c
parentd818ca07b9001313a9fad9756d4e36b3b4361f33
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: 2e741d963c5a ("NFSv4: make cache consistency bitmask dynamic")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c
include/linux/nfs_xdr.h