public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* Sunrpc transport reconnection...
@ 2010-03-29 21:43 Trond Myklebust
       [not found] ` <1269898987.15895.95.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Trond Myklebust @ 2010-03-29 21:43 UTC (permalink / raw)
  To: Mr. Charles Edward Lever; +Cc: linux-nfs

Having looked more carefully at the code...

Is there any reason to keep the xprt->connect_timeout? As far as I can
see, it would appear to be completely redundant.

For UDP there is no disconnect/reconnect. The socket is set up once and
for all, so no need for connect_timeout.

In the case of a TCP reconnection, the xprt->reestablish_timeout will do
exponential back-off to prevent reconnecting unnecessarily. The
XPRT_CONNECTING lock then prevents anyone from trying to interfere with
that connect request until it gets a reply, or the TCP layer decides
that the socket has timed out. Again, it appears that
xprt->connect_timeout is redundant.

RDMA reconnection appears to follow the TCP model. Once again, there is
exponential back-off, enforced by XPRT_CONNECTING.

So why do we have xprt->connect_timeout? What is it enforcing?

Trond

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-29 22:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-29 21:43 Sunrpc transport reconnection Trond Myklebust
     [not found] ` <1269898987.15895.95.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-03-29 22:25   ` Chuck Lever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox