From owner-cvs-src@FreeBSD.ORG Mon Dec 12 19:40:08 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 940CB16A420; Mon, 12 Dec 2005 19:40:08 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 758FD43D5C; Mon, 12 Dec 2005 19:40:04 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jBCJe4G4068601; Mon, 12 Dec 2005 19:40:04 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jBCJe4AO068600; Mon, 12 Dec 2005 19:40:04 GMT (envelope-from jhb) Message-Id: <200512121940.jBCJe4AO068600@repoman.freebsd.org> From: John Baldwin Date: Mon, 12 Dec 2005 19:40:04 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/dev/nve if_nve.c if_nvereg.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 19:40:08 -0000 jhb 2005-12-12 19:40:04 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/dev/nve if_nve.c if_nvereg.h Log: MFC: Sync up with locking changes in HEAD: - Add locked variants of nve_start(), nve_init(), and nve_ifmedia_upd(). - Use callout_* to manage callouts rather than timeout(9). - Mark interrupt handler MPSAFE (IFF_NEEDGIANT was already clear). - Lock the driver lock in driver entry points such as the interrupt handler, if_start, and if_init rather than locking the driver mutex in the various work functions called by the binary blob. - Use IFQ_DRV_IS_EMPTY() macro rather than doing it by hand. - Fix locking in detach. - Remove some unused fields from the softc. - Don't make the driver lock recursive, it shouldn't be recursively acquired anywhere in the driver now. - Axe the spin mutex used for the nve_oslock*() routines. The driver lock already provides sufficient synchronization. - Don't mess around with IFF_UP when the link state changes. IFF_UP is an administrative flag, not a link status indicator. Revision Changes Path 1.7.2.7 +111 -102 src/sys/dev/nve/if_nve.c 1.3.2.1 +3 -8 src/sys/dev/nve/if_nvereg.h