NFSv4/pnfs: pnfs_set_layout_stateid() should update the layout cred
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 27 Jan 2020 18:07:26 +0000 (13:07 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 16 Mar 2020 12:34:28 +0000 (08:34 -0400)
commit59b5639490f51aa604d18064dcf0c2d72eb1decf
tree8f56b02e0c36bb22e89290f3c4514690cdb05287
parent57f188e047731e50cb6af94d473c3c70d3bce7f9
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>
fs/nfs/callback_proc.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h