Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2009 18:19:16 +0000 (UTC)
From:      Robert Noland <rnoland@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189046 - head/sys/dev/drm
Message-ID:  <200902251819.n1PIJG3d004271@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902251819.n1PIJG3d004271>