]> 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)
commitd146552463e3f699c1479a516866e22aa7e721a8
tree7a33cdcf2bfb287eeb0f8550fb3cb490df612dea
parent8dc72a8684ce0fbdd79671dbc5b4b7bca0925a83
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: ae566171aab49 ("pNFS: Use the standard I/O stateid when...")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c