NFS/pnfs: Fix pnfs_generic_prepare_to_resend_writes()
authorTrond Myklebust <trondmy@gmail.com>
Mon, 6 Jan 2020 20:25:04 +0000 (15:25 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 21:34:10 +0000 (16:34 -0500)
commit5d7030939d22cd749d14df657eed174f0958699b
tree89a22787f56ed11f34e1a94c89896ed97c199f2c
parent1ef47a06d2d4b7b16e5ef0f18754040da50f1f36
NFS/pnfs: Fix pnfs_generic_prepare_to_resend_writes()

commit 221203ce6406273cf00e5c6397257d986c003ee6 upstream.

Instead of making assumptions about the commit verifier contents, change
the commit code to ensure we always check that the verifier was set
by the XDR code.

Fixes: f54bcf2ecee9 ("pnfs: Prepare for flexfiles by pulling out common code")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/direct.c
fs/nfs/nfs3xdr.c
fs/nfs/nfs4xdr.c
fs/nfs/pnfs_nfs.c
fs/nfs/write.c