From owner-cvs-src@FreeBSD.ORG  Fri Aug  5 16:03:16 2005
Return-Path: <owner-cvs-src@FreeBSD.ORG>
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 DB4F316A467;
	Fri,  5 Aug 2005 16:03:16 +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 A25A443D48;
	Fri,  5 Aug 2005 16:03:16 +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 j75G3G0C092222;
	Fri, 5 Aug 2005 16:03:16 GMT (envelope-from jhb@repoman.freebsd.org)
Received: (from jhb@localhost)
	by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j75G3G3e092221;
	Fri, 5 Aug 2005 16:03:16 GMT (envelope-from jhb)
Message-Id: <200508051603.j75G3G3e092221@repoman.freebsd.org>
From: John Baldwin <jhb@FreeBSD.org>
Date: Fri, 5 Aug 2005 16:03:16 +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/pci if_pcn.c if_pcnreg.h
X-BeenThere: cvs-src@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit messages for the src tree <cvs-src.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-src>,
	<mailto:cvs-src-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/cvs-src>
List-Post: <mailto:cvs-src@freebsd.org>
List-Help: <mailto:cvs-src-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-src>,
	<mailto:cvs-src-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Aug 2005 16:03:17 -0000

jhb         2005-08-05 16:03:16 UTC

  FreeBSD src repository

  Modified files:
    sys/pci              if_pcn.c if_pcnreg.h 
  Log:
  Fix up the locking in pcn(4) and mark it MPSAFE.
  - Add locked versions of the init() and start() methods.
  - Use callout_*() rather than timeout().
  - Make the driver lock non-recursive.
  - Push down locking in detach() and ioctl().
  - Fix the tick routine to bail if the interface has been stopped and use
    callout_drain() in detach() after the call to stop().
  - Lock the driver lock in the ifmedia handlers.
  
  Tested by:      Ketrien I. Saihr-Kesenchedra ketrien at error404.nls.net
  MFC after:      1 week
  
  Revision  Changes    Path
  1.71      +59 -35    src/sys/pci/if_pcn.c
  1.12      +1 -1      src/sys/pci/if_pcnreg.h