diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-07-05 13:46:53 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-07-05 19:08:27 -0400 |
commit | ac46bd374c9a838874c450c528e2e922ee748ff9 (patch) | |
tree | 412f64704197188b32b3c31122ba9768e3ba1b21 /fs/nfs/pnfs.h | |
parent | 2e18d4d822ea9cc811ea26a880cf2ed47cbf8889 (diff) |
pNFS: Ensure we layoutcommit before revalidating attributes
If we need to update the cached attributes, then we'd better make
sure that we also layoutcommit first. Otherwise, the server may have stale
attributes.
Prior to this patch, the revalidation code tried to "fix" this problem by
simply disabling attributes that would be affected by the layoutcommit.
That approach breaks nfs_writeback_check_extend(), leading to a file size
corruption.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
0 files changed, 0 insertions, 0 deletions