All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 09/11] nfs-utils: mount: Fixed mounts to multi-home servers
@ 2007-02-26 11:18 Steve Dickson
  2007-02-27  6:32 ` Neil Brown
  0 siblings, 1 reply; 6+ messages in thread
From: Steve Dickson @ 2007-02-26 11:18 UTC (permalink / raw)
  To: nfs

[-- Attachment #1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: patch-09.dif --]
[-- Type: text/x-patch, Size: 814 bytes --]

commit 253c6b866a1ed4678c30131a41ef96821bae9d5f
Author: Steve Dickson <steved@redhat.com>
Date:   Sat Feb 24 16:08:22 2007 -0500

    Doing a connect on UDP sockets causes the Linux network
    stack to reject UDP patches from multi-home server with
    nic on the same subnet which caused mounts to hang.
    
    Signed-off-by: Steve Dickson <steved@redhat.com>

diff --git a/support/nfs/conn.c b/support/nfs/conn.c
index 89f7676..06afcc4 100644
--- a/support/nfs/conn.c
+++ b/support/nfs/conn.c
@@ -98,7 +98,7 @@ int get_socket(struct sockaddr_in *saddr, u_int p_prot, int resvp)
 			return RPC_ANYSOCK;
 		}
 	}
-	if (type == SOCK_STREAM || type == SOCK_DGRAM) {
+	if (type == SOCK_STREAM) {
 		cc = connect(so, (struct sockaddr *)saddr, namelen);
 		if (cc < 0) {
 			rpc_createerr.cf_stat = RPC_SYSTEMERROR;

[-- Attachment #3: Type: text/plain, Size: 345 bytes --]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

[-- Attachment #4: Type: text/plain, Size: 140 bytes --]

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

end of thread, other threads:[~2007-03-11 22:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-26 11:18 [PATCH 09/11] nfs-utils: mount: Fixed mounts to multi-home servers Steve Dickson
2007-02-27  6:32 ` Neil Brown
2007-02-27 18:12   ` Jeff Layton
2007-03-01  1:48     ` Neil Brown
2007-03-11 19:58       ` Jeff Layton
2007-03-11 22:38         ` Neil Brown

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.