]> 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)
commit320cff4de336a4c1543c2b1757a45d965555b9ae
tree0a2fea5fc5a56cd582b8a337e33cbbbbfbe9cc10
parent6651fe3aed4c1619d1e60f7547cc33a103674676
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