freebsd-dev/sys/fs
Seigo Tanimura f591779bb5 Lock struct pgrp, session and sigio.
New locks are:

- pgrpsess_lock which locks the whole pgrps and sessions,
- pg_mtx which protects the pgrp members, and
- s_mtx which protects the session members.

Please refer to sys/proc.h for the coverage of these locks.

Changes on the pgrp/session interface:

- pgfind() needs the pgrpsess_lock held.

- The caller of enterpgrp() is responsible to allocate a new pgrp and
  session.

- Call enterthispgrp() in order to enter an existing pgrp.

- pgsignal() requires a pgrp lock held.

Reviewed by:	jhb, alfred
Tested on:	cvsup.jp.FreeBSD.org
		(which is a quad-CPU machine running -current)
2002-02-23 11:12:57 +00:00
..
cd9660 Fix mounting root from a ISO9660 filesystem on a SCSI CDROM. 2001-11-27 03:55:43 +00:00
coda Lock struct pgrp, session and sigio. 2002-02-23 11:12:57 +00:00
deadfs Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
devfs Add a new sysinit SI_SUB_DEVFS. Devfs hooks into the kernel at SI_ORDER_FIRST, 2002-01-09 04:58:49 +00:00
fdescfs Replace ffind_* with fget calls. 2002-01-14 00:13:45 +00:00
fifofs Fix select on fifos. 2002-01-14 22:03:48 +00:00
hpfs Commit a know fix for hpfs to use vop_defaultop plug instead of wrong 2002-01-14 20:13:42 +00:00
msdosfs Fix a BUF_TIMELOCK race against BUF_LOCK and fix a deadlock in vget() 2001-12-20 22:42:27 +00:00
ntfs Fix a BUF_TIMELOCK race against BUF_LOCK and fix a deadlock in vget() 2001-12-20 22:42:27 +00:00
nullfs KSE Milestone 2 2001-09-12 08:38:13 +00:00
nwfs Fix a BUF_TIMELOCK race against BUF_LOCK and fix a deadlock in vget() 2001-12-20 22:42:27 +00:00
portalfs Replace ffind_* with fget calls. 2002-01-14 00:13:45 +00:00
procfs Lock struct pgrp, session and sigio. 2002-02-23 11:12:57 +00:00
pseudofs Part I: Update extended attribute API and ABI: 2002-02-10 04:43:22 +00:00
smbfs Fix a BUF_TIMELOCK race against BUF_LOCK and fix a deadlock in vget() 2001-12-20 22:42:27 +00:00
specfs Lock struct pgrp, session and sigio. 2002-02-23 11:12:57 +00:00
umapfs Assert that a ucred is unshared before we remap its ids. 2001-10-20 03:30:34 +00:00
unionfs Don't even think about using v_id for magic tricks, v_id is giving 2002-02-17 20:39:42 +00:00