Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs Correct preempt() calls.



details:   https://anonhg.NetBSD.org/src/rev/75716a0718b9
branches:  trunk
changeset: 553728:75716a0718b9
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 00:39:03 2003 +0000

description:
Correct preempt() calls.

diffstat:

 sys/ufs/lfs/lfs_vnops.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r 66a82ea699f0 -r 75716a0718b9 sys/ufs/lfs/lfs_vnops.c
--- a/sys/ufs/lfs/lfs_vnops.c   Tue Oct 21 00:33:12 2003 +0000
+++ b/sys/ufs/lfs/lfs_vnops.c   Tue Oct 21 00:39:03 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_vnops.c,v 1.120 2003/10/18 15:52:42 yamt Exp $     */
+/*     $NetBSD: lfs_vnops.c,v 1.121 2003/10/21 00:39:03 fvdl Exp $     */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.120 2003/10/18 15:52:42 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.121 2003/10/21 00:39:03 fvdl Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -400,7 +400,7 @@
                wakeup(&lfs_writer_daemon);
                simple_unlock(&lfs_subsys_lock);
                simple_unlock(&fs->lfs_interlock);
-               preempt(NULL);
+               preempt(1);
                goto restart;
        }
 
@@ -1677,7 +1677,7 @@
                        return r;
 
                /* Start over. */
-               preempt(NULL);
+               preempt(1);
                simple_lock(&vp->v_interlock);
        } while(1);
                
@@ -1760,7 +1760,7 @@
 #endif
                        /* If nothing to write, short-circuit */
                        if (sp->cbpp - sp->bpp == 1) {
-                               preempt(NULL);
+                               preempt(1);
                                simple_lock(&vp->v_interlock);
                                goto again;
                        }
@@ -1778,7 +1778,7 @@
                                sizeof(struct finfo) - sizeof(int32_t);
 
                        /* Give the write a chance to complete */
-                       preempt(NULL);
+                       preempt(1);
 
                        /* We've lost the interlock.  Start over. */
                        simple_lock(&vp->v_interlock);
@@ -1844,7 +1844,7 @@
 #endif
                /* If nothing to write, short-circuit */
                if (sp->cbpp - sp->bpp == 1) {
-                       preempt(NULL);
+                       preempt(1);
                        goto again2;
                }
                /* Write gathered pages */
@@ -1864,7 +1864,7 @@
                        sizeof(struct finfo) - sizeof(int32_t);
 
                /* Give the write a chance to complete */
-               preempt(NULL);
+               preempt(1);
 
                /* We've lost the interlock.  Start over. */
                goto again2;



Home | Main Index | Thread Index | Old Index