NFSv4.1: fix SP4_MACH_CRED protection for pnfs IO
authorOlga Kornievskaia <kolga@netapp.com>
Fri, 13 Oct 2023 15:04:10 +0000 (11:04 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 1 Nov 2023 19:40:44 +0000 (15:40 -0400)
commit5cc7688bae7f0757c39c1d3dfdd827b724061067
tree656a6534529c1ba25d8b3021f24c19ae8a562510
parent4f3ed837186fc0d2722ba8d2457a594322e9c2ef
NFSv4.1: fix SP4_MACH_CRED protection for pnfs IO

If the client is doing pnfs IO and Kerberos is configured and EXCHANGEID
successfully negotiated SP4_MACH_CRED and WRITE/COMMIT are on the
list of state protected operations, then we need to make sure to
choose the DS's rpc_client structure instead of the MDS's one.

Fixes: fb91fb0ee7b2 ("NFS: Move call to nfs4_state_protect_write() to nfs4_write_setup()")
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c