junyoung
fdc32973e7
- Nuke __P().
...
- Drop trailing spaces.
2004-03-23 13:22:32 +00:00
junyoung
a222c81884
Nuke __P().
2004-03-23 13:22:03 +00:00
cl
d636a8b9cb
On MP, exit postsig() when another LWP has already handled the signal while
...
this LWP was waiting for the kernel lock.
Fixes PR kern/24829
2004-03-21 18:41:38 +00:00
mycroft
9f9d44127e
Remove part of a very old change that caused NFS to not enforce socket buffer
...
limits. No idea why it was done in the first place.
Don't remember who reported this, but I think it was yamt.
2004-03-21 00:54:46 +00:00
he
cbeffeb007
Make this compile on platforms which do not define
...
__HAVE_GENERIC_SOFT_INTERRUPTS, such as sun3.
2004-03-20 18:34:57 +00:00
martin
c72dda16a9
Include <lib/libkern/libkern.h> for KASSERT.
2004-03-20 10:39:21 +00:00
snj
089c0cfc10
Fix typos.
2004-03-20 02:57:34 +00:00
jonathan
ec8cb83cd3
Initial import of kcont(9), as posted to tech-kern for discussion in
...
January 2004. This version also incorporates fixes (several typos and
other detailed improvemnts) commented upon by Nathan J Williams.
2004-03-20 02:22:49 +00:00
enami
55c19744c4
- remove unnecessary code.
...
- factor out common code.
- don't stop searching before the target.
- touch the correct object.
- validate the argument before the loop otherwise we need to roll back.
2004-03-18 22:57:38 +00:00
enami
a67d24818d
Whitespace nits and wrap some lines.
2004-03-18 22:53:16 +00:00
christos
b4d69b5716
PR/24814: Colin Percival: sysv_sem waiter counting problem
2004-03-18 01:16:44 +00:00
yamt
639cdf812b
sokvaalloc: unreserve kva if uvm_km_valloc_wait failed.
2004-03-17 10:30:18 +00:00
yamt
82b343cc81
- move kern.somaxkva sysctl stuff from init_sysctl.c to uipc_socket.c.
...
- when changing its value, wakeup sokva waiters.
2004-03-17 10:21:59 +00:00
yamt
097a3aea2e
- fix locking of sosend kva allocation.
...
- some comments.
2004-03-17 10:03:26 +00:00
yamt
2429c10607
remove per-socket pendfree list.
2004-03-17 09:58:15 +00:00
cl
ea5ec0212d
add kernel part of concurrency support for SA on MP systems
...
- move per VP data into struct sadata_vp referenced from l->l_savp
* VP id
* lock on VP data
* LWP on VP
* recently blocked LWP on VP
* queue of LWPs woken which ran on this VP before sleep
* faultaddr
* LWP cache for upcalls
* upcall queue
- add current concurrency and requested concurrency variables
- make process exit run LWP on all VPs
- make signal delivery consider all VPs
- make timer events consider all VPs
- add sa_newsavp to allocate new sadata_vp structure
- add sa_increaseconcurrency to prepare new VP
- make sys_sa_setconcurrency request new VP or wakeup idle VP
- make sa_yield lower current concurrency
- set sa_cpu = VP id in upcalls
- maintain cached LWPs per VP
2004-03-14 01:08:47 +00:00
cl
f1bacc8b38
disable SA upcalls during "systrmsg" sleep
...
-> improves problem from PR bin/23429
2004-03-14 00:48:58 +00:00
cl
63fe298156
regen after:
...
g/c sys_sa_unblockyield which has been unused since 2004/01/02
2004-03-14 00:47:25 +00:00
cl
919b9e33c4
g/c sys_sa_unblockyield which has been unused since 2004/01/02
2004-03-14 00:45:21 +00:00
matt
879040549d
Only do the pmap_procwr if the uvm_io succeeded.
2004-03-13 18:43:18 +00:00
christos
7bd0e983e2
PR/24750: Frank Kardel: panic when process is signalled during
...
proc initialization.
2004-03-11 22:34:26 +00:00
christos
cde926b610
PR/24745: Jared Momose: kernel prompts for a root device when using md_root
2004-03-11 15:17:55 +00:00
yamt
f75335b469
- add a function prototype.
...
- consitify.
2004-03-09 12:23:07 +00:00
yamt
cd9b5b72f5
m_cat: assert mbuf types only when coalescing them by copying.
...
mbuf n often have 0-sized "headers" and their types don't matter much.
PR/24713 from Darrin B. Jewell.
2004-03-09 06:37:59 +00:00
dbj
7a30c4a987
add more spltty() calls around TTY_LOCK/UNLOCK where needed
2004-03-09 05:30:24 +00:00
junyoung
70706199eb
Whitespaces.
2004-03-09 02:35:45 +00:00
dbj
436daafe7e
add splvm() around a few pa_slock and psppool calls since they
...
may be shared with pools that can be used in interrupt context.
2004-03-08 22:48:09 +00:00
atatat
73c41a46cc
Some optimization for sysctl_locate()
2004-03-08 03:31:26 +00:00
junyoung
0f89803028
Drop trailing spaces.
2004-03-05 11:30:50 +00:00
junyoung
103afd6ebf
lwp_exit2(): set lwp state to SZOMB at more appropriate point.
2004-03-05 11:17:41 +00:00
dbj
f8e0478668
add some spltty() calls around TTY_LOCK() calls that didn't have them
2004-03-05 07:27:22 +00:00
matt
1b4f540b78
Look at _UC_STACK to decide whether the process' SS_ONSTACK state needs to
...
be updated. (This is needed to be compatible with how pre-SIGINFO signals
operated. If you siglongjmp out of a signal handler, the SS_ONSTACK state
needs to be cleared. This commit restores that functionality).
2004-03-04 00:05:58 +00:00
dsl
1288fac2ba
No need to initialise [rw]pipe twice.
...
Initialise locks before trying to allocate pipe buffer, when allocate
fails we'll not explode trying to acquire the locks when tidying up.
2004-03-03 22:00:34 +00:00
christos
08230af71c
initialize rpipe and wpipe to NULL, so that they are initialized in the
...
error path.
2004-03-03 21:35:52 +00:00
yamt
471ef5f249
once exit1() releases big kernel lock, the struct proc can be freed and
...
re-used by another cpu immediately. in that case, lwp_exit2() will
access freed memory. to fix this:
- remove curlwp from p_lwps in exit1() rather than letting lwp_exit2() do so.
- add assertions to ensure freed proc has no lwps.
kern/24329 from me and kern/24574 from Havard Eidnes.
2004-03-02 09:15:26 +00:00
yamt
395e9958f2
change the way to handle NEW_BUFQ_STRATEGY option.
...
instead of putting #ifdefs into each drivers,
use a global variable to indicate default strategy.
XXX should have a way to specify other strategies.
2004-02-28 06:28:47 +00:00
junyoung
d177d4c744
More typos in comments.
2004-02-27 02:43:25 +00:00
junyoung
c5a0b24bb5
pgrpdump() is gone.
2004-02-26 11:29:41 +00:00
junyoung
213495299b
- Fix typos.
...
- De-__P().
- Remove trailing spaces.
2004-02-26 11:20:08 +00:00
jdolecek
52197d307a
pipelock() must release the pipe simplelock during tsleep()
...
fixes PR kern/24551 by Havard Eidnes
2004-02-26 08:15:31 +00:00
itojun
efcd57f822
m_cat() - if it is safe, copy data portion into 1st mbuf even if 1st mbuf
...
is M_EXT mbuf.
2004-02-26 02:30:04 +00:00
enami
dab2cb5bb0
Whitespace nits.
2004-02-25 21:40:40 +00:00
enami
f7b4bb80a5
Make ktrwrite() and ktrinitheader() private again. ktrsyscall32() no longer
...
exists.
2004-02-25 21:34:18 +00:00
dbj
5fd36718ae
fix typo in comment s/MNT_LAXY/MNT_LAZY/
2004-02-25 04:10:28 +00:00
christos
7088db9a48
remove error(1) comment.
2004-02-24 20:57:26 +00:00
wiz
f05e6f1a3a
occured -> occurred. From Peter Postma.
2004-02-24 15:12:51 +00:00
jdolecek
4d49760268
use the new NOTE_SUBMIT to flag if the locking is necessary
...
for EVFILT_READ/EVFILT_WRITE knotes
fixes PR kern/23915 by Martin Husemann (pipes), and similar locking problem
in tty code
2004-02-22 17:51:25 +00:00
jdolecek
2ae728e7ef
mount(2): if vinvalbuf() fails, we must also vput() the mountpoint vnode
...
fixes stale vnode lock after attempt to mount something on a NTFS directory
2004-02-22 09:56:26 +00:00
dan
5819919614
micro-optimisation - if we're going to return 0, do so before doing
...
other unnecessary work
2004-02-22 01:00:41 +00:00
enami
06107df871
Modify pool page header allocation strategy as follows:
...
In addition to current one (i.e., don't wast so large part of the page),
- if the header fitsin the page without wasting any items, put it there.
- don't put the header in the page if it may consume rather big item.
For example, on i386, header is now allocated in the page for the pools
like fdescpl or sigapl, and allocated off the page for the pools like
buf1k or buf2k.
2004-02-22 00:19:48 +00:00