1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-03 09:00:21 +00:00
freebsd/sys
Bosko Milekic 08812b3925 Implement MTX_RECURSE flag for mtx_init().
All calls to mtx_init() for mutexes that recurse must now include
the MTX_RECURSE bit in the flag argument variable. This change is in
preparation for an upcoming (further) mutex API cleanup.
The witness code will call panic() if a lock is found to recurse but
the MTX_RECURSE bit was not set during the lock's initialization.

The old MTX_RECURSE "state" bit (in mtx_lock) has been renamed to
MTX_RECURSED, which is more appropriate given its meaning.

The following locks have been made "recursive," thus far:
eventhandler, Giant, callout, sched_lock, possibly some others declared
in the architecture-specific code, all of the network card driver locks
in pci/, as well as some other locks in dev/ stuff that I've found to
be recursive.

Reviewed by: jhb
2001-01-19 01:59:14 +00:00
..
alpha Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
amd64 Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
arm/include Remove seconds types we don't use that came in thru the NetBSD heiratage. 2001-01-08 06:17:11 +00:00
boot Prepare for mdoc(7)NG. 2001-01-16 09:39:23 +00:00
cam Add tags quirk for IBM DNES drives. 2001-01-16 17:02:16 +00:00
coda Delete unused #include <sys/select.h>. 2001-01-09 04:32:24 +00:00
compat Instead of hard coding the major numbers for IDE and SCSI disks 2001-01-14 23:33:50 +00:00
compile
conf Change NSWAPDEV to something else than the default value. 2001-01-16 10:48:58 +00:00
contrib/dev Disable strstr() if ACPICA is compiled in userland. 2001-01-10 19:28:03 +00:00
crypto
ddb Use macro API for <sys/queue.h> 2000-12-30 22:06:19 +00:00
dev Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
fs Fix breakage unconvered by LINT - dont refer to undefined variables in 2001-01-17 01:10:23 +00:00
geom Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
gnu Completed move of Digiboard drivers to dev/dgb 2001-01-08 02:47:37 +00:00
i4b it seems that a commit to i4b/drivers/i4b_ispppsubr.c on 2000-01-12 has 2001-01-15 14:58:46 +00:00
i386 Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
ia64 Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
isa select() DKI is now in <sys/selinfo.h>. 2001-01-09 04:33:49 +00:00
isofs/cd9660 Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
kern Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
libkern - Reverse the order of two loop invariant to ensure strlcat() does not 2001-01-17 20:51:16 +00:00
miscfs Fix breakage unconvered by LINT - dont refer to undefined variables in 2001-01-17 01:10:23 +00:00
modules Argh! add card_if.h to the generated list. This fixes kernel builds for 2001-01-17 22:36:49 +00:00
msdosfs Use macro API to <sys/queue.h> 2000-12-31 10:24:19 +00:00
net select() DKI is now in <sys/selinfo.h>. 2001-01-09 04:33:49 +00:00
netatalk * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT. 2000-12-21 21:44:31 +00:00
netatm * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT. 2000-12-21 21:44:31 +00:00
netgraph Add a generic "queued function callin" mechanism 2001-01-14 23:25:54 +00:00
netinet Document data structures and operation on dummynet so next time 2001-01-17 01:09:40 +00:00
netinet6 workaround; be sure to initialize nd6 interface information when IPv6 2001-01-18 06:07:53 +00:00
netipx * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT. 2000-12-21 21:44:31 +00:00
netkey fixed possibility of panic at key_acquire(). 2001-01-14 17:25:08 +00:00
netnatm Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
netncp Common option '-N' do not require an argument. 2001-01-07 07:03:59 +00:00
netns * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT. 2000-12-21 21:44:31 +00:00
nfs NFS O_EXCL file create semantics temporarily uses file attributes to store 2001-01-04 22:45:19 +00:00
nfsclient NFS O_EXCL file create semantics temporarily uses file attributes to store 2001-01-04 22:45:19 +00:00
nfsserver * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT. 2000-12-21 21:44:31 +00:00
ntfs Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
nwfs
pc98 Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
pccard Fix a minor bug that prevents NEWBUS users from setting more than 2001-01-09 23:39:32 +00:00
pci Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
posix4
powerpc Remove unused per-cpu variables inside_intr and ss_eflags. 2001-01-12 07:47:54 +00:00
rpc
svr4
sys Implement MTX_RECURSE flag for mtx_init(). 2001-01-19 01:59:14 +00:00
tools Simplify this a bit so that it doesn't have to generate silly redundant 2000-12-06 06:59:38 +00:00
ufs The ffs superblock includes a 128-byte region for use by temporary 2001-01-15 18:30:40 +00:00
vm fix comment which was outdated 3 years ago 2000-12-29 13:49:05 +00:00
Makefile