Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 2017 19:38:09 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326664 - head/sys/vm
Message-ID:  <201712071938.vB7Jc9Ck083315@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Thu Dec  7 19:38:09 2017
New Revision: 326664
URL: https://svnweb.freebsd.org/changeset/base/326664

Log:
  Fix the UMA reclaim worker after r326347.
  
  atomic_set_*() sets a bit in the target memory location, so
  atomic_set_int(&uma_reclaim_needed, 0) does not do what it looks like
  it does.
  
  PR:		224080
  Reviewed by:	jeff, kib
  Differential Revision:	https://reviews.freebsd.org/D13412

Modified:
  head/sys/vm/uma_core.c

Modified: head/sys/vm/uma_core.c
==============================================================================
--- head/sys/vm/uma_core.c	Thu Dec  7 18:04:48 2017	(r326663)
+++ head/sys/vm/uma_core.c	Thu Dec  7 19:38:09 2017	(r326664)
@@ -3177,7 +3177,7 @@ uma_reclaim_worker(void *arg __unused)
 		EVENTHANDLER_INVOKE(vm_lowmem, VM_LOW_KMEM);
 		sx_xlock(&uma_drain_lock);
 		uma_reclaim_locked(true);
-		atomic_set_int(&uma_reclaim_needed, 0);
+		uma_reclaim_needed = 0;
 		sx_xunlock(&uma_drain_lock);
 		/* Don't fire more than once per-second. */
 		pause("umarclslp", hz);



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