cvs commit: src/sys/dev/bfe if_bfe.c if_bfereg.h
Mike Makonnen
mtm at FreeBSD.org
Sat Oct 23 01:33:10 PDT 2004
mtm 2004-10-23 08:33:10 UTC
FreeBSD src repository
Modified files:
sys/dev/bfe if_bfe.c if_bfereg.h
Log:
Locking cleanups to remove the need for a recursive mutex
o Instead of locking and unlocking all over the place, use
lock assertions to make certain that the bfe lock is held
where necessary.
o Create locked and unlocked versions of bfe_init and bfe_start. These
functions can be called from outside the module and by functions
within the bfe module. The calls from outside the module don't
hold the bfe lock so the unlocked versions called by these functions
simple obtain the bfe lock and call the locked version.
- Fix a typo (scp) in the locking macros that only worked because in all the
instances in which it was called the softc pointer happened to be named 'sc'.
- Mark the interrupt MPSAFE
Tested by: matusita, Dario Freni <saturnero at gufi.org>
Silence from: -net, wpaul
Revision Changes Path
1.18 +46 -58 src/sys/dev/bfe/if_bfe.c
1.5 +3 -2 src/sys/dev/bfe/if_bfereg.h
More information about the cvs-src
mailing list