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

NFS/flexfiles: Avoid unnecessary layout invalidations



In ff_layout_mirror_valid() we may not want to invalidate the layout
segment despite the call to GETDEVICEINFO failing. The reason is that
a read may still be able to make progress on another mirror.

So instead we let the caller (in this case nfs4_ff_layout_prepare_ds())
decide whether or not it needs to invalidate.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 2444ff27
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