Commit 6960a867 authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] PATCH - RPC/TCP 2 of 4 - Allow SO_REUSEADDR for NFS sockets

Otherwise if you cannot stop and restart nfsd while a client holds a
connection.  Why this isn't the default I cannot imagine...
parent 3060e011
......@@ -1208,6 +1208,7 @@ svc_create_socket(struct svc_serv *serv, int protocol, struct sockaddr_in *sin)
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment