Skip to content

Commit 10ec57e

Browse files
kofemannTrond Myklebust
authored andcommitted
nfs4: flex_file: ignore synthetic uid/gid for tightly coupled DSes
for tightly coupled DSes client must ignore provided synthetic uid and gid as stated in draft-ietf-nfsv4-flex-files-19#section-5.1. Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
1 parent 943cff6 commit 10ec57e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/flexfilelayout/flexfilelayoutdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ ff_layout_get_ds_cred(struct pnfs_layout_segment *lseg, u32 ds_idx,
453453
struct nfs4_ff_layout_mirror *mirror = FF_LAYOUT_COMP(lseg, ds_idx);
454454
struct rpc_cred *cred;
455455

456-
if (mirror) {
456+
if (mirror && !mirror->mirror_ds->ds_versions[0].tightly_coupled) {
457457
cred = ff_layout_get_mirror_cred(mirror, lseg->pls_range.iomode);
458458
if (!cred)
459459
cred = get_rpccred(mdscred);

0 commit comments

Comments
 (0)