From owner-cvs-src-old@FreeBSD.ORG Tue Oct 12 16:09:22 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A64F1065693 for ; Tue, 12 Oct 2010 16:09:22 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 57DC38FC24 for ; Tue, 12 Oct 2010 16:09:22 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o9CG9Mbx083862 for ; Tue, 12 Oct 2010 16:09:22 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o9CG9MT9083861 for cvs-src-old@freebsd.org; Tue, 12 Oct 2010 16:09:22 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <201010121609.o9CG9MT9083861@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Tue, 12 Oct 2010 16:09:08 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/sys/net if_tap.c if_tun.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2010 16:09:22 -0000 jhb 2010-10-12 16:09:08 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/net if_tap.c if_tun.c Log: SVN rev 213727 on 2010-10-12 16:09:08Z by jhb MFC 213028,213328: - Expand scope of tun/tap softc locks to cover more softc fields and driver-maintained ifnet fields (such as if_drv_flags). - Use soft locks as the mutex that protects each interface's knote list rather than using the global knote list lock. Also, use the softc for kn_hook instead of the cdev. - Use mtx_sleep() instead of tsleep() when blocking in the read routines. This fixes a lost wakeup race. - Remove D_NEEDGIANT now that the cdevsw routines use the softc lock where locking is needed. - Lock IFQ when calculating the result for FIONREAD in tap(4). tun(4) already did this. - Remove remaining spl calls. Revision Changes Path 1.71.2.6 +63 -91 src/sys/net/if_tap.c 1.163.2.3 +37 -53 src/sys/net/if_tun.c