]> git.baikalelectronics.ru Git - kernel.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)
commit518171c1f895adc1cf3356ad55fb65cc3aaa044b
tree0a2fea5fc5a56cd582b8a337e33cbbbbfbe9cc10
parent0237bd3fdfa4669f6a707f06fced8844cc8ea69e
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