Skip to content
Snippets Groups Projects
Commit d48d40a0 authored by Vasily Khoruzhick's avatar Vasily Khoruzhick Committed by Joe Hershberger
Browse files

net: nfs: don't fail when nfs_read_reply returns -NFS_RPC_DROP


That can happen if duplicate UDP packet arrived, and that's not uncommon.
Anyway, we ignore packets with rpc_id lower than last we sent for other
requests, so it makes sense to do that for read request as well.

Signed-off-by: default avatarVasily Khoruzhick <anarsoul@gmail.com>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent 286bea2e
No related branches found
No related tags found
No related merge requests found
......@@ -822,6 +822,8 @@ static void nfs_handler(uchar *pkt, unsigned dest, struct in_addr sip,
case STATE_READ_REQ:
rlen = nfs_read_reply(pkt, len);
if (rlen == -NFS_RPC_DROP)
break;
net_set_timeout_handler(nfs_timeout, nfs_timeout_handler);
if (rlen > 0) {
nfs_offset += rlen;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment