Date: Sat, 23 Oct 2004 08:33:10 +0000 (UTC) From: Mike Makonnen <mtm@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/bfe if_bfe.c if_bfereg.h Message-ID: <200410230833.i9N8XA8R077059@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410230833.i9N8XA8R077059>