From owner-svn-src-head@FreeBSD.ORG Sun Feb 21 01:12:18 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4921106568F; Sun, 21 Feb 2010 01:12:18 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D46848FC1F; Sun, 21 Feb 2010 01:12:18 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o1L1CIBJ073145; Sun, 21 Feb 2010 01:12:18 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o1L1CIkE073143; Sun, 21 Feb 2010 01:12:18 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <201002210112.o1L1CIkE073143@svn.freebsd.org> From: Kip Macy Date: Sun, 21 Feb 2010 01:12:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r204159 - head/sys/xen/evtchn X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2010 01:12:19 -0000 Author: kmacy Date: Sun Feb 21 01:12:18 2010 New Revision: 204159 URL: http://svn.freebsd.org/changeset/base/204159 Log: don't hold spin lock across free Modified: head/sys/xen/evtchn/evtchn_dev.c Modified: head/sys/xen/evtchn/evtchn_dev.c ============================================================================== --- head/sys/xen/evtchn/evtchn_dev.c Sun Feb 21 01:11:39 2010 (r204158) +++ head/sys/xen/evtchn/evtchn_dev.c Sun Feb 21 01:12:18 2010 (r204159) @@ -302,11 +302,11 @@ evtchn_close(struct cdev *dev, int flag, { int i; - mtx_lock_spin(&lock); if (ring != NULL) { free(ring, M_DEVBUF); ring = NULL; } + mtx_lock_spin(&lock); for ( i = 0; i < NR_EVENT_CHANNELS; i++ ) if ( synch_test_and_clear_bit(i, &bound_ports[0]) ) mask_evtchn(i);