diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-01-27 19:07:26 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-03-16 13:34:28 +0100 |
commit | 59b5639490f51aa604d18064dcf0c2d72eb1decf (patch) | |
tree | 8f56b02e0c36bb22e89290f3c4514690cdb05287 /fs/nfs/callback_proc.c | |
parent | NFSv4: nfs_update_inplace_delegation() should update delegation cred (diff) | |
download | linux-59b5639490f51aa604d18064dcf0c2d72eb1decf.tar.xz linux-59b5639490f51aa604d18064dcf0c2d72eb1decf.zip |
NFSv4/pnfs: pnfs_set_layout_stateid() should update the layout cred
If the cred assigned to the layout that we're updating differs from
the one used to retrieve the new layout segment, then we need to
update the layout plh_lc_cred field.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/callback_proc.c')
-rw-r--r-- | fs/nfs/callback_proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c index cd4c6bc81cae..b6ffac9963c8 100644 --- a/fs/nfs/callback_proc.c +++ b/fs/nfs/callback_proc.c @@ -280,7 +280,7 @@ static u32 initiate_file_draining(struct nfs_client *clp, goto unlock; } - pnfs_set_layout_stateid(lo, &args->cbl_stateid, true); + pnfs_set_layout_stateid(lo, &args->cbl_stateid, NULL, true); switch (pnfs_mark_matching_lsegs_return(lo, &free_me_list, &args->cbl_range, be32_to_cpu(args->cbl_stateid.seqid))) { |