freebsd-skq/sys
John Baldwin 688ebe120c - Close races with signals and other AST's being triggered while we are in
the process of exiting the kernel.  The ast() function now loops as long
  as the PS_ASTPENDING or PS_NEEDRESCHED flags are set.  It returns with
  preemption disabled so that any further AST's that arrive via an
  interrupt will be delayed until the low-level MD code returns to user
  mode.
- Use u_int's to store the tick counts for profiling purposes so that we
  do not need sched_lock just to read p_sticks.  This also closes a
  problem where the call to addupc_task() could screw up the arithmetic
  due to non-atomic reads of p_sticks.
- Axe need_proftick(), aston(), astoff(), astpending(), need_resched(),
  clear_resched(), and resched_wanted() in favor of direct bit operations
  on p_sflag.
- Fix up locking with sched_lock some.  In addupc_intr(), use sched_lock
  to ensure pr_addr and pr_ticks are updated atomically with setting
  PS_OWEUPC.  In ast() we clear pr_ticks atomically with clearing
  PS_OWEUPC.  We also do not grab the lock just to test a flag.
- Simplify the handling of Giant in ast() slightly.

Reviewed by:	bde (mostly)
2001-08-10 22:53:32 +00:00
..
alpha - Close races with signals and other AST's being triggered while we are in 2001-08-10 22:53:32 +00:00
amd64 - Close races with signals and other AST's being triggered while we are in 2001-08-10 22:53:32 +00:00
arm Don't need the .keep_me files. Obrien and I committed past each other. 2001-07-01 23:35:44 +00:00
boot Style cleanup. 2001-08-10 22:31:05 +00:00
cam Eliminate the hot-spare 'r' in Arrray. 2001-08-10 11:47:08 +00:00
coda Warning fix: coda_fbsd.c:113: warning: unused variable `ret' 2001-06-15 00:02:27 +00:00
compat Added the linux_sysinfo function to implement sysinfo(2). 2001-07-23 06:22:10 +00:00
conf Add early code to support interrupts. 2001-08-10 04:48:48 +00:00
contrib fix import/merge related code problems 2001-07-30 10:53:23 +00:00
crypto properly check DES weak key. KAME PR 363. 2001-07-03 17:46:48 +00:00
ddb Quiet a variable format-string warning. 2001-07-19 02:05:00 +00:00
dev Do NOT allocate a 1K buffer on the kernel stack. 2001-08-10 17:32:11 +00:00
fs Remove dangling prototype for the now defunct procfs_kmemaccess() 2001-08-03 17:51:05 +00:00
geom
gnu Do not depend on pcb_savefpu backwards compat #define. 2001-07-12 12:19:11 +00:00
i4b make driver compile under 4.3-STABLE 2001-07-22 19:55:05 +00:00
i386 - Close races with signals and other AST's being triggered while we are in 2001-08-10 22:53:32 +00:00
ia64 - Close races with signals and other AST's being triggered while we are in 2001-08-10 22:53:32 +00:00
isa DO NOT ALLOCATE 2+K OBJECTS ON THE KERNEL STACK!!!! 2001-08-10 07:50:14 +00:00
isofs/cd9660
kern - Close races with signals and other AST's being triggered while we are in 2001-08-10 22:53:32 +00:00
libkern We do not have UPAGES following the tail end of the user VM space anymore. 2001-08-08 04:02:22 +00:00
modules Build modules from the main src/sys tree. 2001-08-09 00:13:30 +00:00
net printed current sequence number of the SA. accordingly, changed 2001-08-06 19:40:01 +00:00
netatalk
netatm Commited patch for uni signaling fix. 2001-07-11 16:31:50 +00:00
netgraph Pack struct uniqtag declarations to stop our data field from being pushed 2001-08-02 09:28:31 +00:00
netinet mdoc(7) police: 2001-08-07 15:48:51 +00:00
netinet6 Fix unaligned access (fault) on alpha with ndp -p/-r and sysctl -a. 2001-08-10 00:34:20 +00:00
netipx
netkey printed current sequence number of the SA. accordingly, changed 2001-08-06 19:40:01 +00:00
netnatm
netncp Fix warning: 203: implicit declaration of function `kernel_sysctlbyname' 2001-06-15 07:37:01 +00:00
netns
netsmb Remove bogus include. 2001-06-14 11:05:01 +00:00
nfs Fix a client-side memory leak in nfs_flush(). The code allocates 2001-08-01 10:25:13 +00:00
nfsclient Fix a client-side memory leak in nfs_flush(). The code allocates 2001-08-01 10:25:13 +00:00
nfsserver With Alfred's permission, remove vm_mtx in favor of a fine-grained approach 2001-07-04 16:20:28 +00:00
pc98 - Close races with signals and other AST's being triggered while we are in 2001-08-10 22:53:32 +00:00
pccard Move ISA interrupt ISR and timeout routines to pcic from pcic_isa so 2001-08-10 06:07:20 +00:00
pci Pacify users who get all bent out of shape when they see the "xl%d: command 2001-07-27 20:55:45 +00:00
posix4 - Close races with signals and other AST's being triggered while we are in 2001-08-10 22:53:32 +00:00
powerpc - Close races with signals and other AST's being triggered while we are in 2001-08-10 22:53:32 +00:00
rpc
sparc64 - Close races with signals and other AST's being triggered while we are in 2001-08-10 22:53:32 +00:00
svr4
sys - Close races with signals and other AST's being triggered while we are in 2001-08-10 22:53:32 +00:00
tools
ufs Two recent commits in sys/ufs/ufs interacted badly with ext2fs 2001-07-29 22:26:01 +00:00
vm - Remove asleep(), await(), and M_ASLEEP. 2001-08-10 06:56:12 +00:00
Makefile