diff options
author | Weston Andros Adamson <dros@monkey.org> | 2017-03-09 18:56:48 +0100 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-03-17 21:07:10 +0100 |
commit | a33e4b036d4612f62220f37a9fa29d273b6fd0ca (patch) | |
tree | 0a2fea5fc5a56cd582b8a337e33cbbbbfbe9cc10 /fs/nfs/getroot.c | |
parent | NFSv4.1 respect server's max size in CREATE_SESSION (diff) | |
download | linux-a33e4b036d4612f62220f37a9fa29d273b6fd0ca.tar.xz linux-a33e4b036d4612f62220f37a9fa29d273b6fd0ca.zip |
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>
Diffstat (limited to 'fs/nfs/getroot.c')
0 files changed, 0 insertions, 0 deletions