NFSv4: OPEN must handle the NFS4ERR_IO return code correctly
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 4 Dec 2013 22:39:23 +0000 (17:39 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 6 Dec 2013 18:06:30 +0000 (13:06 -0500)
commitc7848f69ec4a8c03732cde5c949bd2aa711a9f4b
treef4f6e24d4beea569ab9fd532ce61b0df3947c585
parent374b105797c3d4f29c685f3be535c35f5689b30e
NFSv4: OPEN must handle the NFS4ERR_IO return code correctly

decode_op_hdr() cannot distinguish between an XDR decoding error and
the perfectly valid errorcode NFS4ERR_IO. This is normally not a
problem, but for the particular case of OPEN, we need to be able
to increment the NFSv4 open sequence id when the server returns
a valid response.

Reported-by: J Bruce Fields <bfields@fieldses.org>
Link: http://lkml.kernel.org/r/20131204210356.GA19452@fieldses.org
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: stable@vger.kernel.org
fs/nfs/nfs4xdr.c