Skip to content
Commit ac46bd37 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 2e18d4d8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment