NFS/pnfs: Reference the layout cred in pnfs_prepare_layoutreturn()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 2 Apr 2020 19:37:02 +0000 (15:37 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 3 Apr 2020 22:29:10 +0000 (18:29 -0400)
commit44ea8dfce021db1db6a31970b1f13a80366a1f21
tree1bd9a768c10e9d65b44bdd3462a1d4af24c44a2a
parent97a728f5e2ad62a069dd395d3e516bb0acdbb3ec
NFS/pnfs: Reference the layout cred in pnfs_prepare_layoutreturn()

When we're sending a layoutreturn, ensure that we reference the
layout cred atomically with the copy of the stateid.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c
fs/nfs/pnfs.c