NFSv2: Fix eof handling
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 27 Aug 2019 00:41:16 +0000 (20:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Sep 2019 05:14:16 +0000 (07:14 +0200)
commitbc94dcfbc58199158f71547d06dfb003fa3c1e7a
treeea29a71c7246785ec0296a443fdddd9f70fcf8f7
parent970b0ee7ceeb92ad6c2970197d584f7ed2bd8ec9
NFSv2: Fix eof handling

[ Upstream commit 71affe9be45a5c60b9772e1b2701710712637274 ]

If we received a reply from the server with a zero length read and
no error, then that implies we are at eof.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/proc.c