Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump regen: scheduling points
details: https://anonhg.NetBSD.org/src/rev/2107f405b084
branches: trunk
changeset: 748161:2107f405b084
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Oct 15 00:32:11 2009 +0000
description:
regen: scheduling points
diffstat:
sys/rump/include/rump/rumpvnode_if.h | 4 +-
sys/rump/librump/rumpvfs/rumpvnode_if.c | 101 +++++++++++++++++++++++++++++++-
2 files changed, 100 insertions(+), 5 deletions(-)
diffs (truncated from 617 to 300 lines):
diff -r db535fc2c01e -r 2107f405b084 sys/rump/include/rump/rumpvnode_if.h
--- a/sys/rump/include/rump/rumpvnode_if.h Thu Oct 15 00:31:25 2009 +0000
+++ b/sys/rump/include/rump/rumpvnode_if.h Thu Oct 15 00:32:11 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpvnode_if.h,v 1.3 2009/09/29 11:54:52 pooka Exp $ */
+/* $NetBSD: rumpvnode_if.h,v 1.4 2009/10/15 00:32:11 pooka Exp $ */
/*
* Warning: DO NOT EDIT! This file is automatically generated!
@@ -7,7 +7,7 @@
* Created from the file:
* NetBSD: vnode_if.src,v 1.58 2008/11/15 19:08:12 pooka Exp
* by the script:
- * NetBSD: vnode_if.sh,v 1.52 2009/09/29 11:51:02 pooka Exp
+ * NetBSD: vnode_if.sh,v 1.53 2009/10/15 00:29:40 pooka Exp
*/
/*
diff -r db535fc2c01e -r 2107f405b084 sys/rump/librump/rumpvfs/rumpvnode_if.c
--- a/sys/rump/librump/rumpvfs/rumpvnode_if.c Thu Oct 15 00:31:25 2009 +0000
+++ b/sys/rump/librump/rumpvfs/rumpvnode_if.c Thu Oct 15 00:32:11 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpvnode_if.c,v 1.2 2009/09/29 11:54:52 pooka Exp $ */
+/* $NetBSD: rumpvnode_if.c,v 1.3 2009/10/15 00:32:11 pooka Exp $ */
/*
* Warning: DO NOT EDIT! This file is automatically generated!
@@ -7,7 +7,7 @@
* Created from the file:
* NetBSD: vnode_if.src,v 1.58 2008/11/15 19:08:12 pooka Exp
* by the script:
- * NetBSD: vnode_if.sh,v 1.52 2009/09/29 11:51:02 pooka Exp
+ * NetBSD: vnode_if.sh,v 1.53 2009/10/15 00:29:40 pooka Exp
*/
/*
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpvnode_if.c,v 1.2 2009/09/29 11:54:52 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpvnode_if.c,v 1.3 2009/10/15 00:32:11 pooka Exp $");
#include <sys/param.h>
#include <sys/mount.h>
@@ -48,6 +48,7 @@
#include <sys/vnode.h>
#include <sys/lock.h>
#include <rump/rumpvnode_if.h>
+#include "rump_private.h"
const struct vnodeop_desc rump_vop_default_desc = {
0,
@@ -85,9 +86,11 @@
a.a_desc = VDESC(rump_vop_bwrite);
a.a_bp = bp;
mpsafe = (bp->b_vp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(bp->b_vp, VOFFSET(rump_vop_bwrite), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
return error;
}
@@ -120,9 +123,11 @@
a.a_vpp = vpp;
a.a_cnp = cnp;
mpsafe = (dvp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(dvp, VOFFSET(rump_vop_lookup), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
#ifdef DIAGNOSTIC
if (error == 0)
KASSERT((*vpp)->v_size != VSIZENOTSET
@@ -160,9 +165,11 @@
a.a_cnp = cnp;
a.a_vap = vap;
mpsafe = (dvp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(dvp, VOFFSET(rump_vop_create), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
#ifdef DIAGNOSTIC
if (error == 0)
KASSERT((*vpp)->v_size != VSIZENOTSET
@@ -200,9 +207,11 @@
a.a_cnp = cnp;
a.a_vap = vap;
mpsafe = (dvp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(dvp, VOFFSET(rump_vop_mknod), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
#ifdef DIAGNOSTIC
if (error == 0)
KASSERT((*vpp)->v_size != VSIZENOTSET
@@ -238,9 +247,11 @@
a.a_mode = mode;
a.a_cred = cred;
mpsafe = (vp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(vp, VOFFSET(rump_vop_open), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
return error;
}
@@ -271,9 +282,11 @@
a.a_fflag = fflag;
a.a_cred = cred;
mpsafe = (vp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(vp, VOFFSET(rump_vop_close), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
return error;
}
@@ -304,9 +317,11 @@
a.a_mode = mode;
a.a_cred = cred;
mpsafe = (vp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(vp, VOFFSET(rump_vop_access), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
return error;
}
@@ -337,9 +352,11 @@
a.a_vap = vap;
a.a_cred = cred;
mpsafe = (vp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(vp, VOFFSET(rump_vop_getattr), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
return error;
}
@@ -370,9 +387,11 @@
a.a_vap = vap;
a.a_cred = cred;
mpsafe = (vp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(vp, VOFFSET(rump_vop_setattr), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
return error;
}
@@ -405,9 +424,11 @@
a.a_ioflag = ioflag;
a.a_cred = cred;
mpsafe = (vp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(vp, VOFFSET(rump_vop_read), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
return error;
}
@@ -440,9 +461,11 @@
a.a_ioflag = ioflag;
a.a_cred = cred;
mpsafe = (vp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(vp, VOFFSET(rump_vop_write), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
return error;
}
@@ -477,9 +500,11 @@
a.a_fflag = fflag;
a.a_cred = cred;
mpsafe = (vp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(vp, VOFFSET(rump_vop_ioctl), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
return error;
}
@@ -514,9 +539,11 @@
a.a_fflag = fflag;
a.a_cred = cred;
mpsafe = (vp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(vp, VOFFSET(rump_vop_fcntl), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
return error;
}
@@ -545,9 +572,11 @@
a.a_vp = vp;
a.a_events = events;
mpsafe = (vp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(vp, VOFFSET(rump_vop_poll), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
return error;
}
@@ -576,9 +605,11 @@
a.a_vp = vp;
a.a_kn = kn;
mpsafe = (vp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(vp, VOFFSET(rump_vop_kqfilter), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
return error;
}
@@ -607,9 +638,11 @@
a.a_vp = vp;
a.a_flags = flags;
mpsafe = (vp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(vp, VOFFSET(rump_vop_revoke), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
return error;
}
@@ -640,9 +673,11 @@
a.a_prot = prot;
a.a_cred = cred;
mpsafe = (vp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(vp, VOFFSET(rump_vop_mmap), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
return error;
}
@@ -677,9 +712,11 @@
a.a_offlo = offlo;
a.a_offhi = offhi;
mpsafe = (vp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(vp, VOFFSET(rump_vop_fsync), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
return error;
}
@@ -712,9 +749,11 @@
a.a_newoff = newoff;
a.a_cred = cred;
mpsafe = (vp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(vp, VOFFSET(rump_vop_seek), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
return error;
}
@@ -746,9 +785,11 @@
a.a_vp = vp;
a.a_cnp = cnp;
mpsafe = (dvp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(dvp, VOFFSET(rump_vop_remove), &a));
if (!mpsafe) { KERNEL_UNLOCK_ONE(curlwp); }
+ rump_unschedule();
return error;
}
@@ -780,9 +821,11 @@
a.a_vp = vp;
a.a_cnp = cnp;
mpsafe = (dvp->v_vflag & VV_MPSAFE);
+ rump_schedule();
if (!mpsafe) { KERNEL_LOCK(1, curlwp); }
error = (VCALL(dvp, VOFFSET(rump_vop_link), &a));
Home |
Main Index |
Thread Index |
Old Index