From owner-freebsd-fs@FreeBSD.ORG Mon Mar 17 02:24:31 2008 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1CC6106564A; Mon, 17 Mar 2008 02:24:31 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id D81A18FC15; Mon, 17 Mar 2008 02:24:31 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id E06351A4D83; Sun, 16 Mar 2008 19:23:19 -0700 (PDT) Date: Sun, 16 Mar 2008 19:23:19 -0700 From: Alfred Perlstein To: Adam Jacob Muller Message-ID: <20080317022319.GH67856@elvis.mu.org> References: <20080314100155.GW67856@elvis.mu.org> <5D026085-BA3C-4A9C-88C4-E229837E0F90@adam.gs> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5D026085-BA3C-4A9C-88C4-E229837E0F90@adam.gs> User-Agent: Mutt/1.4.2.3i Cc: ups@freebsd.org, jhb@freebsd.org, fs@freebsd.org Subject: Re: nfs no longer reconnects for udp sockets X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2008 02:24:32 -0000 * Adam Jacob Muller [080316 18:43] wrote: > Ah, Very nice, I have been hitting this issue for a while now but had > not completely realized what was causing it. > Will have to set aside some time to test this but the patch looks good > (it's 50% comments so I can understand what you are doing anyway :)). > > "Please don't break this, it's annoying." > Indeed, this bug is quite annoying. > > Thanks for your work on this (and, obviously, the work you did on the > reconnect support prior). Can you give me an ETA on testing? If it's soon I can hold off committing for your feedback and that would help much. Don't forget you need to use UDP. :) -Alfred > > -Adam > > > On Mar 14, 2008, at 6:01 AM, Alfred Perlstein wrote: > > >Hey guys, someone was having issues with NFS mounts and > >I happened to notice that it appears that the > >"reconnect if socket went south" semantics I added a few > >years ago were basically disabled by the nfs optimizations > >added for "recv side processing". > > > >The problem is as such: > > > >You have an NFS mount on UDP. > >Somehow the route goes bad. > >The UDP socket is now "broken" as the route will remain > >hosed forever. This is particularly bad when an interface > >flaps and loses its IP address as the UDP socket's route is > >then set to nul or loopback or something and never gets fixed. > >Your nfs mount goes dead even if the routing issues is > >resolved (interface brought back up). > > > >Please see attached patch. > > > >Easy way to reproduce problem: > > > >mount an nfs filesystem using UDP. > >ifconfig interface down > >try to access mount > >ifconfig interface up > >mount should still be dead. > > > >Please review. > > > >-- > >- Alfred Perlstein > >< > >nfs_reconnect_udp.diff>_______________________________________________ > >freebsd-fs@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-fs > >To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" -- - Alfred Perlstein