OSDN Git Service

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:12:51 +0000 (07:12 +0200)
commitccc4f53a7d4576d25e96dfaa9b9a902f0755d08c
tree2b5a12dcd2e1cfa797c52df7aaa9a1e7e9688751
parent1ad4aaa984dc234b5b0c0f816e09cc40b4632409
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