summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-03-08 10:56:48 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-03-08 10:56:48 +0000
commit0ec2ec0ae0631dd0a6d043b1fb6fe4c43fae337e (patch)
treed8039f64703569d57bbe47693ccb238378e2a2eb
parent7e44f1aab277622fd62516fc427fad2b05622b76 (diff)
Be more careful about who we treat as the syncer.
-rw-r--r--sys/ufs/ffs/ffs_softdep.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index 109be191854..e647919e1c1 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_softdep.c,v 1.19 2001/03/04 07:00:33 csapuntz Exp $ */
+/* $OpenBSD: ffs_softdep.c,v 1.20 2001/03/08 10:56:47 art Exp $ */
/*
* Copyright 1998, 2000 Marshall Kirk McKusick. All Rights Reserved.
*
@@ -525,8 +525,11 @@ softdep_process_worklist(matchmnt)
/*
* Record the process identifier of our caller so that we can give
* this process preferential treatment in request_cleanup below.
+ * We can't do this in softdep_initialize, because the syncer doesn't
+ * have to run then.
+ * NOTE! This function _could_ be called with a curproc != syncerproc.
*/
- filesys_syncer = p;
+ filesys_syncer = syncerproc;
matchcnt = 0;
/*