christos
dac1180a87
fix debugging printf
2008-07-18 21:29:48 +00:00
rmind
a7fc471680
PR/39155: Wolfgang Solfrank: Invalid parameter to turnstile_exit in rw_downgrade.
2008-07-17 23:00:01 +00:00
pooka
cc7d901591
vfs_subr2 has lost its will to live. vfs_subr was originally split
...
into two parts so that some of the routines could be used by rump.
Now that rump uses both vfs_subr and vfs_subr2 and there is no
reason to keep two files lying around, re-unite them.
2008-07-16 20:06:19 +00:00
drochner
8b720093a8
wipe out tty buffer contents after read, to avoid keeping possibly
...
sensitive information in memory longer than necessary
(We could make this depend on ~ECHO or so, but this would be an API
change and I don't think it is worth the effort.)
2008-07-16 18:27:49 +00:00
pooka
b09210ace9
rumpalooza sys_fsync
2008-07-16 15:42:54 +00:00
christos
460ae70d0a
make l_flags contain more stuff. Fixes top thread display where system processes
...
were always displayed.
2008-07-15 22:25:30 +00:00
christos
aa389c698d
Use more timespecs internally. From Alexander Shishkin and me.
...
Welcome to 4.99.70, 30 more to go for 100.
2008-07-15 16:18:08 +00:00
hannken
0d6dbadf45
bdwrite(): The COWDONE check may fire for special vnodes with mounted
...
non-ffs file system. Remove VBLK vnodes from the check.
Should fix PR kern/38892
2008-07-14 16:22:42 +00:00
rmind
7c330ba82f
Fix the locking against oneself, migrate LWPs only from runqueue.
...
Part of the fix for PR/38882.
2008-07-14 01:27:15 +00:00
rmind
4f91cff093
- Disallow setting of affinity for zombie LWPs.
...
- Fix the possible NULL dereference when LWP exiting.
- Fix the inhertance of affinity.
2008-07-14 01:19:37 +00:00
rmind
d489642431
sched_migratable: add KASSERT since this function cannot be called
...
without lock held now. Few cosmetic changes, while here.
2008-07-14 01:18:10 +00:00
yamt
e4fb48bcaf
pool_do_put: fix a pool corruption bug discovered by
...
the recent exec_pool changes.
2008-07-09 02:43:53 +00:00
christos
7f6e74c46e
Fix to bug reported and tested by Alexander Shishkin. struct ptimer has
...
a union that contains either a callout [for CLOCK_REALTIME] or a flag
and a list [for other clock types]. Make sure we perform the right actions
on the right union member depending on the clock type. Otherwise this would
result in crashes.
2008-07-08 20:53:02 +00:00
pooka
fc6faa2baf
Force vrele_thread to run in vflush() only if there is vrele_pending.
...
Makes unmounting a file system in a forcibly singlethreaded rump
invocation work.
2008-07-07 14:15:41 +00:00
yamt
03bb7555b4
fix pool corruption bugs in subr_pool.c 1.162.
2008-07-07 12:27:19 +00:00
pooka
21730363f8
Expose utimes() and lutimes() to rump.
...
from Arnaud Ysmal
2008-07-07 09:01:40 +00:00
bouyer
52346627a5
kern/39052: fix broken assertion. We can have a BC_BUSY buffer in the LRU
...
queue, if it's being flushed. But in this case, we'll also have B_VFLUSH.
While there fix checkfreelist() so that it can be used to check that a
buffer is not in the free lists.
2008-07-06 15:00:45 +00:00
ad
6c6c91b240
Move an assignment later.
2008-07-04 16:41:00 +00:00
ad
46587f3717
- Keep cache locked while allocating a cache group - later we might want
...
to automatically tune the group sizes at run time.
- Fix broken assertion.
- Avoid another test+branch.
2008-07-04 16:38:59 +00:00
ad
9d573e640e
Remove a bunch of conditional branches from the pool_cache fast path.
2008-07-04 13:28:08 +00:00
ad
2526653044
vinvalbuf: broken assertion.
2008-07-03 12:37:09 +00:00
rmind
b7cdc71cd2
mq_open: fix confusion of FREAD/FWRITE and VREAD/VWRITE.
2008-07-02 20:06:09 +00:00
rmind
30dfdb2897
lwp_migrate: if LWP is still on the CPU (LP_RUNNING), it must be handled
...
like LSONPROC. Should fix PR/38588. OK by <ad>.
2008-07-02 19:53:12 +00:00
rmind
160268aca6
Remove proc_representative_lwp(), use a simple LIST_FIRST() instead.
...
OK by <ad>.
2008-07-02 19:49:58 +00:00
rmind
73f3b7bb31
Remove outdated comments, and historical CCPU_SHIFT. Make resched_cpu static,
...
const-ify ccpu. Note: resched_cpu is not correct, should be revisited.
OK by <ad>.
2008-07-02 19:44:10 +00:00
rmind
61fc86b29b
Remove locking of p_stmutex from sched_pstats(), protect l_pctcpu with p_lock,
...
and make l_cpticks lock-less. Should fix PR/38296.
Reviewed (slightly different version) by <ad>.
2008-07-02 19:38:37 +00:00
ad
b94f79f0e8
Replce exec_map with a pool. Proposed on tech-kern@, reviewed by chs@.
2008-07-02 17:28:54 +00:00
matt
7408df1239
Change {ff,fd}_exclose and ff_allocated to bool. Change exclose arg to
...
fd_dup to bool. Switch assignments from 1/0 to true/false.
This make alpha kernels compile. Bump kern to 4.99.69 since structure
changed.
2008-07-02 16:45:19 +00:00
matt
1906aa3e59
Switch from KASSERT to CTASSERT for those asserts testing sizes of types.
2008-07-02 14:47:34 +00:00
pooka
1805817468
Adjust rump syscalls: remove a few pointless ones and add a few
...
missing ones.
2008-07-01 13:03:08 +00:00
matt
5a4f0c6b2b
Change tree op members/typedefs to rbto_compare_* from rb_compare_*
2008-06-30 20:14:09 +00:00
pooka
d496f014ff
Don't compile kern_lock for rump any more, it's no longer required.
...
Allows us to get rid of the incorrect _RUMPKERNEL ifdefs outside sys/rump.
2008-06-25 13:16:58 +00:00
ad
40818746b1
Use pool_cache.
2008-06-25 11:05:46 +00:00
ad
d23ae8da8d
sigpending1: don't subtract the sigmask (!!).
2008-06-25 11:04:24 +00:00
ad
80892cd092
Use pool_cache.
2008-06-24 18:50:30 +00:00
ad
8c5bcce4b9
execve1:
...
- Properly terminate the fake argument list.
- Fix two double-frees.
2008-06-24 18:04:52 +00:00
ad
9993bc6d33
Nothing uses getsock/getvnode any more.
2008-06-24 11:21:46 +00:00
gmcgarry
8cead24f2a
The conversion to c99-style designated initialisers brought in the gcc
...
extension of specifying an array range. Revert to runtime initialization
of limit0.
See here for details: http://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html
2008-06-24 10:31:05 +00:00
gmcgarry
a7edd5ccdd
Replace gcc-style designated initialisers with c99-style.
2008-06-24 10:27:35 +00:00
gmcgarry
8b957c9d45
ioctl commands are unsigned long. Changes ABI for fsetown() and fgetown() on 64-bit architectures.
2008-06-24 10:26:26 +00:00
gmcgarry
fb6bc48511
ioctl commands are unsigned long.
2008-06-24 10:24:21 +00:00
rmind
59a180ac8f
sysctl_proc_stop: fix a lock-leak when kauth returns an error.
...
From <kefren>.
2008-06-23 20:04:36 +00:00
ad
aed68d2d63
getvnode -> fd_getvnode
2008-06-23 11:30:41 +00:00
ad
29957bec2e
sys_fcntl: use l_fd, not p_fd.
2008-06-23 11:26:53 +00:00
ad
7756789d3a
PR kern/38990: Unmounting a disk fails the first time
...
vflush: process vrele_list at least once before looking at the mount.
2008-06-23 11:23:39 +00:00
ad
bce675d015
When offlining a CPU, ensure that at least one other CPU within the same
...
processor set remains online, otherwise the system can deadlock.
2008-06-22 13:59:06 +00:00
ad
53db9954a3
- Ensure that at least one cpu stays in the default pset, otherwise the
...
system will lock up.
- Use cpu_lock, there's no need for a seperate psets_lock.
- Add a sysctl to return the list of psets as a string.
2008-06-22 12:59:18 +00:00
christos
1d875fc75f
Adjust to separate kcpuset_t and cpuset_t.
2008-06-22 00:06:36 +00:00
christos
5e865a2f1b
Also enforce that cm->cmsg_len >= CMSG_ALIGN(sizeof cmsghdr), from
...
Michael van Elst
2008-06-20 15:27:50 +00:00
christos
db982eb35b
Don't require cm->cmsg_len == control->m_len, just that the cm->cmsg_len
...
<= control->m_len, like FreeBSD does. Idea from Taylor R Campbell.
2008-06-20 15:18:38 +00:00