]> 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)
commit19042db50d55d4372496a2c7a43678162776f280
tree6840690b50cda449b56d73efbf9bab75294ef59c
parent3c44b1bd894752a541b4fad2741e22e3ffc80bef
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: ec237caec7bd ("NFSv4: make cache consistency bitmask dynamic")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c
include/linux/nfs_xdr.h