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:17:01 +0000 (07:17 +0200)
commit60f0d449601d7c4c375ffd3083b4c65f0950288c
tree9bdb0bf8601e283e171ec22b738074452a427c46
parent6075729f76dafd55d72c2ca8a0a7f381a03e259e
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