]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pNFS: return status from nfs4_pnfs_ds_connect
authorWeston Andros Adamson <dros@monkey.org>
Thu, 9 Mar 2017 17:56:48 +0000 (12:56 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 17 Mar 2017 20:07:10 +0000 (16:07 -0400)
commita33e4b036d4612f62220f37a9fa29d273b6fd0ca
tree0a2fea5fc5a56cd582b8a337e33cbbbbfbe9cc10
parent033853325fe3bdc70819a8b97915bd3bca41d3af
pNFS: return status from nfs4_pnfs_ds_connect

The nfs4_pnfs_ds_connect path can call rpc_create which can fail or it
can wait on another context to reach the same failure.

This checks that the rpc_create succeeded and returns the error to the
caller.

When an error is returned, both the files and flexfiles layouts will return
NULL from _prepare_ds(). The flexfiles layout will also return the layout
with the error NFS4ERR_NXIO.

Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/client.c
fs/nfs/filelayout/filelayoutdev.c
fs/nfs/flexfilelayout/flexfilelayoutdev.c
fs/nfs/internal.h
fs/nfs/pnfs.h
fs/nfs/pnfs_nfs.c