aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2008-02-11 17:11:39 -0500
committerJ. Bruce Fields <bfields@citi.umich.edu>2008-04-23 16:13:38 -0400
commit5ea0dd61f221ba2701314a85e998b8202412553d (patch)
tree1f1d1f2bea5fd98cc06af8d070242bdfd1ddd87b /fs
parentc0ce6ec87c59d7a29438717b1f72f83fb408f416 (diff)
NFSD: Remove NFSD_TCP kernel build option
Likewise, distros usually leave CONFIG_NFSD_TCP enabled. TCP support in the Linux NFS server is stable enough that we can leave it on always. CONFIG_NFSD_TCP adds about 10 lines of code, and defaults to "Y" anyway. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs')
-rw-r--r--fs/Kconfig10
-rw-r--r--fs/nfsd/nfssvc.c2
2 files changed, 0 insertions, 12 deletions
diff --git a/fs/Kconfig b/fs/Kconfig
index 8b18a8758677..12002775d299 100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -1696,7 +1696,6 @@ config NFSD
1696 select EXPORTFS 1696 select EXPORTFS
1697 select NFSD_V2_ACL if NFSD_V3_ACL 1697 select NFSD_V2_ACL if NFSD_V3_ACL
1698 select NFS_ACL_SUPPORT if NFSD_V2_ACL 1698 select NFS_ACL_SUPPORT if NFSD_V2_ACL
1699 select NFSD_TCP if NFSD_V4
1700 select CRYPTO_MD5 if NFSD_V4 1699 select CRYPTO_MD5 if NFSD_V4
1701 select CRYPTO if NFSD_V4 1700 select CRYPTO if NFSD_V4
1702 select FS_POSIX_ACL if NFSD_V4 1701 select FS_POSIX_ACL if NFSD_V4
@@ -1755,15 +1754,6 @@ config NFSD_V4
1755 should only be used if you are interested in helping to test NFSv4. 1754 should only be used if you are interested in helping to test NFSv4.
1756 If unsure, say N. 1755 If unsure, say N.
1757 1756
1758config NFSD_TCP
1759 bool "Provide NFS server over TCP support"
1760 depends on NFSD
1761 default y
1762 help
1763 If you want your NFS server to support TCP connections, say Y here.
1764 TCP connections usually perform better than the default UDP when
1765 the network is lossy or congested. If unsure, say Y.
1766
1767config ROOT_NFS 1757config ROOT_NFS
1768 bool "Root file system on NFS" 1758 bool "Root file system on NFS"
1769 depends on NFS_FS=y && IP_PNP 1759 depends on NFS_FS=y && IP_PNP
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c
index 9647b0f7bc0c..941041f4b136 100644
--- a/fs/nfsd/nfssvc.c
+++ b/fs/nfsd/nfssvc.c
@@ -244,7 +244,6 @@ static int nfsd_init_socks(int port)
244 if (error < 0) 244 if (error < 0)
245 return error; 245 return error;
246 246
247#ifdef CONFIG_NFSD_TCP
248 error = lockd_up(IPPROTO_TCP); 247 error = lockd_up(IPPROTO_TCP);
249 if (error >= 0) { 248 if (error >= 0) {
250 error = svc_create_xprt(nfsd_serv, "tcp", port, 249 error = svc_create_xprt(nfsd_serv, "tcp", port,
@@ -254,7 +253,6 @@ static int nfsd_init_socks(int port)
254 } 253 }
255 if (error < 0) 254 if (error < 0)
256 return error; 255 return error;
257#endif
258 return 0; 256 return 0;
259} 257}
260 258