pNFS/flexfiles: Report RDMA connection errors to the server
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 18 May 2022 20:09:06 +0000 (16:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:22:45 +0000 (14:22 +0200)
commit94d0dd56f81776331a9a6e3dd132a14831a70731
treed234719a5e7b184b93a6a479503796576af66e50
parent661714de240361dc5abc2108eeddb143268060b9
pNFS/flexfiles: Report RDMA connection errors to the server

commit 7836d75467e9d214bdf5c693b32721de729a6e38 upstream.

The RPC/RDMA driver will return -EPROTO and -ENODEV as connection errors
under certain circumstances. Make sure that we handle them and report
them to the server. If not, we can end up cycling forever in a
LAYOUTGET/LAYOUTRETURN loop.

Fixes: a12f996d3413 ("NFSv4/pNFS: Use connections to a DS that are all of the same protocol family")
Cc: stable@vger.kernel.org # 5.11.x
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/flexfilelayout/flexfilelayout.c