svn commit: r189046 - head/sys/dev/drm

Robert Noland rnoland at FreeBSD.org
Wed Feb 25 10:19:17 PST 2009


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;


More information about the svn-src-all mailing list