]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd9e9006cdde6d8b30ef3cc084774d95336fd854b
tree2e208da8a6585afccab9d942f3fed755073efafe
parentfd1b4d588f86eb448a5298bd93041ef6cc62c1fe
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