]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 10 Jul 2022 23:00:53 +0000 (19:00 -0400)
commita11e26c30568f1a029b91320cfee47b2932d6105
treefa47c2364a600561ede83460d1cf8b700a743722
parent69018f0b3a023f0d134af58359137e115063ae69
pNFS/flexfiles: Report RDMA connection errors to the server

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: c4e2867458cc ("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>
fs/nfs/flexfilelayout/flexfilelayout.c