Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 May 2012 08:55:59 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r235983 - stable/9/sys/vm
Message-ID:  <201205250855.q4P8txLe091944@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri May 25 08:55:59 2012
New Revision: 235983
URL: http://svn.freebsd.org/changeset/base/235983

Log:
  MFC r235603:
  Do not double-reference the found vm object in cdev_pager_lookup().
  vm_pager_object_lookup() already referenced the object.

Modified:
  stable/9/sys/vm/device_pager.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/vm/device_pager.c
==============================================================================
--- stable/9/sys/vm/device_pager.c	Fri May 25 08:30:09 2012	(r235982)
+++ stable/9/sys/vm/device_pager.c	Fri May 25 08:55:59 2012	(r235983)
@@ -102,7 +102,6 @@ cdev_pager_lookup(void *handle)
 
 	mtx_lock(&dev_pager_mtx);
 	object = vm_pager_object_lookup(&dev_pager_object_list, handle);
-	vm_object_reference(object);
 	mtx_unlock(&dev_pager_mtx);
 	return (object);
 }



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