]> 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)
commited30ef30279a06d2989643c0a854f8fc15b87d76
tree2e208da8a6585afccab9d942f3fed755073efafe
parenta13e7949d0c66c52513bfd63d019c28bd2192ba2
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