From owner-cvs-all@FreeBSD.ORG Fri Nov 16 11:22:18 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4DFA16A41A; Fri, 16 Nov 2007 11:22:18 +0000 (UTC) (envelope-from avatar@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B0B6113C461; Fri, 16 Nov 2007 11:22:18 +0000 (UTC) (envelope-from avatar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lAGBMIpJ012452; Fri, 16 Nov 2007 11:22:18 GMT (envelope-from avatar@repoman.freebsd.org) Received: (from avatar@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lAGBMIxa012451; Fri, 16 Nov 2007 11:22:18 GMT (envelope-from avatar) Message-Id: <200711161122.lAGBMIxa012451@repoman.freebsd.org> From: Tai-hwa Liang Date: Fri, 16 Nov 2007 11:22:18 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/an if_an.c if_anreg.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2007 11:22:18 -0000 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