kernel -- vnlru: Remove MPLOCK from vnlru.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Tue, 3 Apr 2012 03:59:20 +0000 (20:59 -0700)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Tue, 3 Apr 2012 03:59:20 +0000 (20:59 -0700)
vnlru didn't need the mplock through its main loop.

sys/kern/vfs_mount.c

index e6f02fd..6810003 100644 (file)
@@ -92,7 +92,6 @@
 #include <sys/buf2.h>
 #include <sys/thread2.h>
 #include <sys/sysref2.h>
-#include <sys/mplock2.h>
 
 #include <vm/vm.h>
 #include <vm/vm_object.h>
@@ -706,9 +705,6 @@ vnlru_proc(void)
        EVENTHANDLER_REGISTER(shutdown_pre_sync, shutdown_kproc, td,
                              SHUTDOWN_PRI_FIRST);
 
-       get_mplock();
-       crit_enter();
-
        for (;;) {
                kproc_suspend_loop();
 
@@ -770,9 +766,6 @@ vnlru_proc(void)
                        vnlru_nowhere = 0;
                }
        }
-
-       crit_exit();
-       rel_mplock();
 }
 
 /*