From owner-cvs-all@FreeBSD.ORG Tue Jan 30 00:26:05 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 627C316A401; Tue, 30 Jan 2007 00:26:05 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 3D9EC13C481; Tue, 30 Jan 2007 00:26:05 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l0U0Q5J6068697; Tue, 30 Jan 2007 00:26:05 GMT (envelope-from kris@repoman.freebsd.org) Received: (from kris@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l0U0Q5a8068696; Tue, 30 Jan 2007 00:26:05 GMT (envelope-from kris) Message-Id: <200701300026.l0U0Q5a8068696@repoman.freebsd.org> From: Kris Kennaway Date: Tue, 30 Jan 2007 00:26:05 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/nfsclient nfs_vfsops.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jan 2007 00:26:05 -0000 kris 2007-01-30 00:26:04 UTC FreeBSD src repository Modified files: sys/nfsclient nfs_vfsops.c Log: Instead of always hard-coding the socket type for the nfs root mount as SOCK_DGRAM (i.e. UDP), respect the value configured earlier. This allows TCP NFS root mounts using e.g. the boot.nfsroot.options="tcp" tunable. In this case some of the connection parameters like the retry timer were previously set appropriately for TCP but inappropriately for the UDP socket that was actually used, leading to e.g. extremely long recovery times (O(hours)) after a nfs server reboot. Reviewed by: mohans MFC After: 2 weeks Revision Changes Path 1.191 +1 -1 src/sys/nfsclient/nfs_vfsops.c