Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/puffs/rump_nfs Remove threading ifdefs. It was nev...



details:   https://anonhg.NetBSD.org/src/rev/fff80aa97975
branches:  trunk
changeset: 748257:fff80aa97975
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Oct 18 16:02:15 2009 +0000

description:
Remove threading ifdefs.  It was never easy to run the nfs client
without threads, but now it's even more difficult due to sillyrename
using workqueue, so whoever wants to do it will have to take to
manual fiddling.

diffstat:

 usr.sbin/puffs/rump_nfs/rump_nfs.c |  16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)

diffs (30 lines):

diff -r 2f10234676cd -r fff80aa97975 usr.sbin/puffs/rump_nfs/rump_nfs.c
--- a/usr.sbin/puffs/rump_nfs/rump_nfs.c        Sun Oct 18 15:57:15 2009 +0000
+++ b/usr.sbin/puffs/rump_nfs/rump_nfs.c        Sun Oct 18 16:02:15 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump_nfs.c,v 1.8 2009/10/18 15:57:15 pooka Exp $       */
+/*     $NetBSD: rump_nfs.c,v 1.9 2009/10/18 16:02:15 pooka Exp $       */
 
 /*
  * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
@@ -47,20 +47,6 @@
        char canon_dev[MAXPATHLEN], canon_dir[MAXPATHLEN];
        int rv, mntflags;
 
-#if 0
-       extern int rumpns_nfs_niothreads; /* XXX */
-       char *thr;
-       /*
-        * XXX: but we can't call rump init before we detach (fork()) in
-        * p2k_run_fs() lest we lose our threads.
-        */
-       thr = getenv("RUMP_THREADS");
-       if (!thr || !*thr)
-               rumpns_nfs_niothreads = 0;
-#else
-       setenv("RUMP_THREADS", "1", 1);
-#endif
-
        setprogname(argv[0]);
        mount_nfs_parseargs(argc, argv, &args, &mntflags, canon_dev, canon_dir);
 



Home | Main Index | Thread Index | Old Index