Source-Changes-HG archive

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

[src/trunk]: src/lib/libperfuse mlockall is not necessary after all, once we ...



details:   https://anonhg.NetBSD.org/src/rev/1293b0e5f376
branches:  trunk
changeset: 770478:1293b0e5f376
user:      manu <manu%NetBSD.org@localhost>
date:      Tue Oct 18 15:47:32 2011 +0000

description:
mlockall is not necessary after all, once we have fixed a kernel bug involving
agedaemon sleeping form memory

diffstat:

 lib/libperfuse/perfuse.c |  9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diffs (23 lines):

diff -r bbc9eef13b6f -r 1293b0e5f376 lib/libperfuse/perfuse.c
--- a/lib/libperfuse/perfuse.c  Tue Oct 18 15:39:09 2011 +0000
+++ b/lib/libperfuse/perfuse.c  Tue Oct 18 15:47:32 2011 +0000
@@ -1,4 +1,4 @@
-/*  $NetBSD: perfuse.c,v 1.20 2011/09/09 22:51:44 christos Exp $ */
+/*  $NetBSD: perfuse.c,v 1.21 2011/10/18 15:47:32 manu Exp $ */
 
 /*-
  *  Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved.
@@ -400,13 +400,6 @@
        struct puffs_node *pn_root;
        struct puffs_pathobj *po_root;
 
-       /*
-        * perfused needs to remain in memory. If it gets
-        * swapped out, the kernel will deadlock when trying
-        * to free memory backed by the PUFFS filesystem
-        */
-       mlockall(MCL_CURRENT|MCL_FUTURE);
-
        ps = init_state();
        ps->ps_owner_uid = pmi->pmi_uid;
 



Home | Main Index | Thread Index | Old Index