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
..
2000-12-03 13:21:55 +00:00
2001-01-07 20:52:42 +00:00
2000-05-01 19:54:26 +00:00
2000-05-01 20:32:07 +00:00
2000-12-08 00:49:37 +00:00
2000-12-28 23:23:28 +00:00
2000-01-18 08:38:35 +00:00
2000-05-01 19:54:26 +00:00
2000-11-18 15:21:22 +00:00
2001-01-08 05:34:06 +00:00
2000-11-10 06:39:58 +00:00
2001-01-05 16:40:30 +00:00
2000-12-26 06:52:57 +00:00
2000-10-31 08:22:26 +00:00
2000-12-07 20:58:16 +00:00