Date: Thu, 18 Jan 2001 17:59:15 -0800 (PST) From: Bosko Milekic <bmilekic@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/alpha machdep.c src/sys/dev/an if_an.c src/sys/dev/usb if_aue.c if_cue.c if_kue.c src/sys/dev/wi if_wi.c src/sys/i386/i386 machdep.c src/sys/i386/isa if_el.c src/sys/ia64/ia64 machdep.c src/sys/kern kern_mutex.c ... Message-ID: <200101190159.f0J1xFP30696@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
bmilekic 2001/01/18 17:59:15 PST
Modified files:
sys/alpha/alpha machdep.c
sys/dev/an if_an.c
sys/dev/usb if_aue.c if_cue.c if_kue.c
sys/dev/wi if_wi.c
sys/i386/i386 machdep.c
sys/i386/isa if_el.c
sys/ia64/ia64 machdep.c
sys/kern kern_mutex.c subr_eventhandler.c
sys/pc98/i386 machdep.c
sys/pci if_dc.c if_fxp.c if_pcn.c if_rl.c if_sf.c
if_sis.c if_sk.c if_ste.c if_ti.c if_tl.c
if_vr.c if_wb.c if_wx.c if_xl.c
sys/sys mutex.h
Log:
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
Revision Changes Path
1.107 +4 -4 src/sys/alpha/alpha/machdep.c
1.14 +4 -3 src/sys/dev/an/if_an.c
1.34 +4 -3 src/sys/dev/usb/if_aue.c
1.15 +4 -3 src/sys/dev/usb/if_cue.c
1.27 +4 -3 src/sys/dev/usb/if_kue.c
1.34 +3 -3 src/sys/dev/wi/if_wi.c
1.430 +5 -5 src/sys/i386/i386/machdep.c
1.53 +2 -2 src/sys/i386/isa/if_el.c
1.16 +4 -4 src/sys/ia64/ia64/machdep.c
1.32 +56 -21 src/sys/kern/kern_mutex.c
1.10 +2 -2 src/sys/kern/subr_eventhandler.c
1.197 +5 -5 src/sys/pc98/i386/machdep.c
1.42 +3 -3 src/sys/pci/if_dc.c
1.102 +2 -2 src/sys/pci/if_fxp.c
1.15 +3 -3 src/sys/pci/if_pcn.c
1.54 +3 -3 src/sys/pci/if_rl.c
1.28 +3 -3 src/sys/pci/if_sf.c
1.27 +3 -3 src/sys/pci/if_sis.c
1.37 +3 -3 src/sys/pci/if_sk.c
1.22 +3 -3 src/sys/pci/if_ste.c
1.42 +3 -3 src/sys/pci/if_ti.c
1.61 +3 -3 src/sys/pci/if_tl.c
1.36 +3 -3 src/sys/pci/if_vr.c
1.37 +3 -3 src/sys/pci/if_wb.c
1.14 +2 -2 src/sys/pci/if_wx.c
1.89 +3 -3 src/sys/pci/if_xl.c
1.17 +9 -8 src/sys/sys/mutex.h
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101190159.f0J1xFP30696>
