NFS/pNFS: Report EINVAL errors from connect() to the server
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 4 Sep 2023 16:43:58 +0000 (12:43 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 13 Sep 2023 15:51:11 +0000 (11:51 -0400)
commitdd7d7ee3ba2a70d12d02defb478790cf57d5b87b
treeacc9fca397f9350f8840c4cb8a24054efc19d614
parentb11243f720ee5f9376861099019c8542969b6318
NFS/pNFS: Report EINVAL errors from connect() to the server

With IPv6, connect() can occasionally return EINVAL if a route is
unavailable. If this happens during I/O to a data server, we want to
report it using LAYOUTERROR as an inability to connect.

Fixes: dd52128afdde ("NFSv4.1/pnfs Ensure flexfiles reports all connection related errors")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/flexfilelayout/flexfilelayout.c