]> git.itanic.dy.fi Git - linux-stable/commit
NFS/pnfs: Do not clobber existing pgio_done_cb in nfs4_proc_read_setup
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 28 Jun 2016 17:54:09 +0000 (13:54 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Oct 2016 13:21:24 +0000 (15:21 +0200)
commitc31ebfa6e16a2daa04e9b8888c2071679aa8256b
tree9bf00d8fbc92096c65e2049f95b8eb2f0add7c41
parent013e460e7ac688bac81c63671d68d1817a4b17e0
NFS/pnfs: Do not clobber existing pgio_done_cb in nfs4_proc_read_setup

commit ca857cc1d4cf17aba4bbb3b95d35454ad96924b3 upstream.

If a pNFS client sets hdr->pgio_done_cb, then we should not overwrite that
in nfs4_proc_read_setup()

Fixes: 75bf47ebf6b5 ("pNFS/flexfile: Fix erroneous fall back to...")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4proc.c