]> rtime.felk.cvut.cz Git - zynq/linux.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)
commite8fa33a6f6c7688591542db955794b69b8cecc55
tree7a33cdcf2bfb287eeb0f8550fb3cb490df612dea
parent0a47df11bfc31e1ceae7f91cea84d3bff500475d
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: 70d2f7b1ea19b ("pNFS: Use the standard I/O stateid when...")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c