Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jun 2010 04:41:31 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r208903 - stable/8/sys/i386/i386
Message-ID:  <201006080441.o584fVrG092805@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Tue Jun  8 04:41:31 2010
New Revision: 208903
URL: http://svn.freebsd.org/changeset/base/208903

Log:
  MFC r208765
    In the unlikely event that pmap_ts_referenced() demoted five superpage
    mappings to the same underlying physical page, the calling thread would
    be left forever pinned to the same processor.
  
  Approved by:	re (kib)

Modified:
  stable/8/sys/i386/i386/pmap.c

Modified: stable/8/sys/i386/i386/pmap.c
==============================================================================
--- stable/8/sys/i386/i386/pmap.c	Tue Jun  8 03:39:31 2010	(r208902)
+++ stable/8/sys/i386/i386/pmap.c	Tue Jun  8 04:41:31 2010	(r208903)
@@ -4461,7 +4461,7 @@ pmap_ts_referenced(vm_page_t m)
 					rtval++;
 					if (rtval > 4) {
 						PMAP_UNLOCK(pmap);
-						return (rtval);
+						goto out;
 					}
 				}
 			}
@@ -4490,6 +4490,7 @@ pmap_ts_referenced(vm_page_t m)
 			PMAP_UNLOCK(pmap);
 		} while ((pv = pvn) != NULL && pv != pvf);
 	}
+out:
 	sched_unpin();
 	return (rtval);
 }



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