]> git.baikalelectronics.ru Git - kernel.git/commit
pNFS: Ensure we check layout segment validity in the pg_init() callback
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 25 Apr 2017 14:56:19 +0000 (10:56 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 25 Apr 2017 14:56:19 +0000 (10:56 -0400)
commit8eaf63261f2307178b80e0c99c66e475efa209bd
treec0b55ff70d1643c37656e44b87d9f18e3256b58f
parentba4415e72b61ccb73a9621b1ad8bcf7fe41e9db1
pNFS: Ensure we check layout segment validity in the pg_init() callback

If we have a layout segment cached in pgio->pg_lseg, we should check it
for validity before reusing it in a new RPC request. Otherwise, if we
recoalesce, we can end up looping forever.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/filelayout/filelayout.c
fs/nfs/flexfilelayout/flexfilelayout.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h