Source-Changes-HG archive

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

[src/trunk]: src/sys/miscfs/syncfs Restore updateproc because rump uses it un...



details:   https://anonhg.NetBSD.org/src/rev/3e8d50fd2559
branches:  trunk
changeset: 769774:3e8d50fd2559
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Sep 22 21:58:07 2011 +0000

description:
Restore updateproc because rump uses it until we figure out how to remove it
for good.

diffstat:

 sys/miscfs/syncfs/sync_subr.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 22fd7efab391 -r 3e8d50fd2559 sys/miscfs/syncfs/sync_subr.c
--- a/sys/miscfs/syncfs/sync_subr.c     Thu Sep 22 20:55:17 2011 +0000
+++ b/sys/miscfs/syncfs/sync_subr.c     Thu Sep 22 21:58:07 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sync_subr.c,v 1.45 2011/06/12 03:35:58 rmind Exp $     */
+/*     $NetBSD: sync_subr.c,v 1.46 2011/09/22 21:58:07 christos Exp $  */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sync_subr.c,v 1.45 2011/06/12 03:35:58 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sync_subr.c,v 1.46 2011/09/22 21:58:07 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -129,6 +129,8 @@
 static long            syncer_last;
 static synclist_t *    syncer_workitem_pending;
 
+struct lwp *           updateproc;
+
 void
 vn_initialize_syncerd(void)
 {
@@ -220,6 +222,8 @@
        time_t starttime;
        bool synced;
 
+       updateproc = curlwp;
+
        for (;;) {
                mutex_enter(&syncer_mutex);
                mutex_enter(&syncer_data_lock);



Home | Main Index | Thread Index | Old Index