]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4/pnfs: Fix an infinite layoutget loop
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 4 Oct 2017 17:49:12 +0000 (13:49 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 4 Oct 2017 18:06:54 +0000 (14:06 -0400)
commit3bf605deb1ee0dde26490a061c83375b69f28213
tree7a33cdcf2bfb287eeb0f8550fb3cb490df612dea
parentd3dc07cb2308760d9378b603df2805c22e151922
NFSv4/pnfs: Fix an infinite layoutget loop

Since we can now use a lock stateid or a delegation stateid, that
differs from the context stateid, we need to change the test in
nfs4_layoutget_handle_exception() to take this into account.

This fixes an infinite layoutget loop in the NFS client whereby
it keeps retrying the initial layoutget using the same broken
stateid.

Fixes: c4a2268e329cf ("pNFS: Use the standard I/O stateid when...")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c