All of lore.kernel.org
 help / color / mirror / Atom feed
* PATCH - RPC/TCP 2 of 4 - Allow  SO_REUSEADDR for NFS sockets
@ 2002-08-13  2:57 Neil Brown
  2002-08-13  3:23 ` Chuck Lever
  0 siblings, 1 reply; 5+ messages in thread
From: Neil Brown @ 2002-08-13  2:57 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Minoura Makoto, Chuck Lever, nfs


Otherwise if you cannot stop and restart nfsd while a client holds a
connection.  Why this isn't the default I cannot imagine...

 ----------- Diffstat output ------------
 ./net/sunrpc/svcsock.c |    1 +
 1 files changed, 1 insertion(+)

--- ./net/sunrpc/svcsock.c	2002/08/12 06:01:42	1.2
+++ ./net/sunrpc/svcsock.c	2002/08/13 01:54:39	1.3
@@ -1208,6 +1208,7 @@ svc_create_socket(struct svc_serv *serv,
 		return error;
 
 	if (sin != NULL) {
+		sock->sk->reuse = 1; /* allow address reuse */
 		error = sock->ops->bind(sock, (struct sockaddr *) sin,
 						sizeof(*sin));
 		if (error < 0)


-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

end of thread, other threads:[~2002-08-14  1:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-13  2:57 PATCH - RPC/TCP 2 of 4 - Allow SO_REUSEADDR for NFS sockets Neil Brown
2002-08-13  3:23 ` Chuck Lever
2002-08-13  6:01   ` Neil Brown
2002-08-14  1:04     ` Julian Cowley
2002-08-14  1:17     ` Trond Myklebust

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.