From owner-svn-src-head@FreeBSD.ORG Wed Feb 25 18:19:17 2009 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 0959C10656BA; Wed, 25 Feb 2009 18:19:17 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id EA9438FC1D; Wed, 25 Feb 2009 18:19:16 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n1PIJG6n004272; Wed, 25 Feb 2009 18:19:16 GMT (envelope-from rnoland@svn.freebsd.org) Received: (from rnoland@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n1PIJG3d004271; Wed, 25 Feb 2009 18:19:16 GMT (envelope-from rnoland@svn.freebsd.org) Message-Id: <200902251819.n1PIJG3d004271@svn.freebsd.org> From: Robert Noland Date: Wed, 25 Feb 2009 18:19:16 +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: r189046 - head/sys/dev/drm 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: Wed, 25 Feb 2009 18:19:17 -0000 Author: rnoland Date: Wed Feb 25 18:19:16 2009 New Revision: 189046 URL: http://svn.freebsd.org/changeset/base/189046 Log: There is no reason to hold the lock here. When I was LOCK_PROFILING this was pretty high up and there is no reason for it. MFC after: 2 weeks Modified: head/sys/dev/drm/drm_drv.c Modified: head/sys/dev/drm/drm_drv.c ============================================================================== --- head/sys/dev/drm/drm_drv.c Wed Feb 25 18:16:50 2009 (r189045) +++ head/sys/dev/drm/drm_drv.c Wed Feb 25 18:19:16 2009 (r189046) @@ -658,9 +658,7 @@ int drm_ioctl(struct cdev *kdev, u_long int is_driver_ioctl = 0; struct drm_file *file_priv; - DRM_LOCK(); retcode = devfs_get_cdevpriv((void **)&file_priv); - DRM_UNLOCK(); if (retcode != 0) { DRM_ERROR("can't find authenticator\n"); return EINVAL;