original_kernel/net/sunrpc
Trond Myklebust 241c39b9ac RPC: Fix the TCP resend semantics for NFSv4
Fix a regression due to the patch "NFS: disconnect before retrying NFSv4
requests over TCP"

The assumption made in xprt_transmit() that the condition
	"req->rq_bytes_sent == 0 and request is on the receive list"
should imply that we're dealing with a retransmission is false.
Firstly, it may simply happen that the socket send queue was full
at the time the request was initially sent through xprt_transmit().
Secondly, doing this for each request that was retransmitted implies
that we disconnect and reconnect for _every_ request that happened to
be retransmitted irrespective of whether or not a disconnection has
already occurred.

Fix is to move this logic into the call_status request timeout handler.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-04-20 22:56:30 -07:00
..
auth_gss
Makefile
auth.c
auth_null.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
auth_unix.c
cache.c
clnt.c RPC: Fix the TCP resend semantics for NFSv4 2007-04-20 22:56:30 -07:00
pmap_clnt.c
rpc_pipe.c
sched.c
socklib.c
stats.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
sunrpc_syms.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
svc.c [PATCH] knfsd: provide sunrpc pool_mode module option 2007-03-06 09:30:26 -08:00
svcauth.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
svcauth_unix.c knfsd: use a spinlock to protect sk_info_authunix 2007-04-17 16:36:27 -07:00
svcsock.c [SUNRPC]: Make sure on-stack cmsg buffer is properly aligned. 2007-04-12 13:35:59 -07:00
sysctl.c [PATCH] sysctl: remove insert_at_head from register_sysctl 2007-02-14 08:09:59 -08:00
timer.c
xdr.c
xprt.c RPC: Fix the TCP resend semantics for NFSv4 2007-04-20 22:56:30 -07:00
xprtsock.c [PATCH] sysctl: remove insert_at_head from register_sysctl 2007-02-14 08:09:59 -08:00