nfs4: resend LAYOUTGET when there is a race that changes the seqid
authorJeff Layton <jlayton@poochiereds.net>
Wed, 25 Nov 2015 18:43:14 +0000 (13:43 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 25 Nov 2015 20:32:13 +0000 (15:32 -0500)
commit4f2e9dce0c6348a95eaa56ade9bab18572221088
tree2e208da8a6585afccab9d942f3fed755073efafe
parentc812012f9ca7cf89c9e1a1cd512e6c3b5be04b85
nfs4: resend LAYOUTGET when there is a race that changes the seqid

pnfs_layout_process will check the returned layout stateid against what
the kernel has in-core. If it turns out that the stateid we received is
older, then we should resend the LAYOUTGET instead of falling back to
MDS I/O.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Cc: stable@vger.kernel.org # 3.18+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs.c