NFS/pnfs: Don't use RPC_TASK_CRED_NOREF with pnfs
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 13 May 2020 13:55:36 +0000 (09:55 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 13 May 2020 13:55:36 +0000 (09:55 -0400)
commit4fa7ef69e2918eb89c95e57978d839c0a31f332c
treeac895a5ded59c3ef72224b62fb75dbc312a29868
parentf304a809a9f1eec23e023f3aae6c768a08495244
NFS/pnfs: Don't use RPC_TASK_CRED_NOREF with pnfs

When we're doing pnfs then the credential being used for the RPC call
is not necessarily the same as the one used in the open context, so
don't use RPC_TASK_CRED_NOREF.

Fixes: 612965072020 ("NFSv4: Avoid referencing the cred unnecessarily during NFSv4 I/O")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pagelist.c
fs/nfs/pnfs_nfs.c
fs/nfs/write.c