Date: Fri, 16 Nov 2007 11:22:18 +0000 (UTC) From: Tai-hwa Liang <avatar@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/an if_an.c if_anreg.h Message-ID: <200711161122.lAGBMIxa012451@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
avatar 2007-11-16 11:22:18 UTC
FreeBSD src repository
Modified files:
sys/dev/an if_an.c if_anreg.h
Log:
MFP4(128855, 129015):
- Trying to eliminate another racing by replacing the timeout(9) with
callout APIs. In addition to that, the callout_drain() in an_detach()
help us to avoid a possible panic-on-free due to the callout API tries
to lock a destroyed mutex.
- In an_stats_update(), check the return value of an_read_record(). This
should reduce the chance of device removal(PCCARD) panic [2].
- Adding a comment to state the fact that an_stats_update() is now called
via callout(9) with a lock held [2].
Submitted by: jhb [1], ambrisko [2]
Reviewed by: jhb, ambrisko
Reported by: dhw
Tested by: dhw
MFC after: 3 days
Revision Changes Path
1.85 +17 -10 src/sys/dev/an/if_an.c
1.24 +1 -1 src/sys/dev/an/if_anreg.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711161122.lAGBMIxa012451>
