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:33:24 +0000 (16:33 -0500)
commit056d1656704016990311ecae5a751c91942192c8
tree1ed5892eaa6d08d68109fe2cb250b156f258b578
parent3060883146e59cb60c7e2d8981bc256f7c5283df
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