aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/filelayout/filelayoutdev.c
diff options
context:
space:
mode:
authorPeng Tao <[email protected]>2014-05-29 13:07:00 +0000
committerTom Haynes <[email protected]>2015-02-03 19:06:33 +0000
commit064172f3459a914277aa309b2afd3bd5d1c3289a (patch)
tree1365bcc2407efe393cbe7fa39aa8a8fef3cfdf02 /fs/nfs/filelayout/filelayoutdev.c
parentnfs41: pull nfs4_ds_connect from file layout to generic pnfs (diff)
downloadkernel-064172f3459a914277aa309b2afd3bd5d1c3289a.tar.gz
kernel-064172f3459a914277aa309b2afd3bd5d1c3289a.zip
nfs41: allow LD to choose DS connection auth flavor
flexfile layout may use different auth flavor as specified by MDS. Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Peng Tao <[email protected]> Signed-off-by: Tom Haynes <[email protected]>
Diffstat (limited to 'fs/nfs/filelayout/filelayoutdev.c')
-rw-r--r--fs/nfs/filelayout/filelayoutdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/filelayout/filelayoutdev.c b/fs/nfs/filelayout/filelayoutdev.c
index 27bdd8ce177e..5e4b0cea84c8 100644
--- a/fs/nfs/filelayout/filelayoutdev.c
+++ b/fs/nfs/filelayout/filelayoutdev.c
@@ -278,7 +278,8 @@ nfs4_fl_prepare_ds(struct pnfs_layout_segment *lseg, u32 ds_idx)
goto out_test_devid;
nfs4_pnfs_ds_connect(s, ds, devid, dataserver_timeo,
- dataserver_retrans);
+ dataserver_retrans,
+ s->nfs_client->cl_rpcclient->cl_auth->au_flavor);
out_test_devid:
if (filelayout_test_devid_unavailable(devid))