svn commit: r240113 - head/sys/vm
Dag-Erling Smørgrav
des at FreeBSD.org
Tue Sep 4 22:19:33 UTC 2012
Author: des
Date: Tue Sep 4 22:19:33 2012
New Revision: 240113
URL: http://svn.freebsd.org/changeset/base/240113
Log:
No memory barrier is required. This was pointed out by kib@ a while ago,
but I got distracted by other matters.
(for real this time)
Modified:
head/sys/vm/swap_pager.c
Modified: head/sys/vm/swap_pager.c
==============================================================================
--- head/sys/vm/swap_pager.c Tue Sep 4 22:17:33 2012 (r240112)
+++ head/sys/vm/swap_pager.c Tue Sep 4 22:19:33 2012 (r240113)
@@ -1848,7 +1848,7 @@ retry:
mtx_unlock(&swhash_mtx);
VM_OBJECT_UNLOCK(object);
if (uma_zone_exhausted(swap_zone)) {
- if (atomic_cmpset_rel_int(&exhausted, 0, 1))
+ if (atomic_cmpset_int(&exhausted, 0, 1))
printf("swap zone exhausted, "
"increase kern.maxswzone\n");
vm_pageout_oom(VM_OOM_SWAPZ);
@@ -1859,7 +1859,7 @@ retry:
goto retry;
}
- if (atomic_cmpset_rel_int(&exhausted, 1, 0))
+ if (atomic_cmpset_int(&exhausted, 1, 0))
printf("swap zone ok\n");
swap->swb_hnext = NULL;
More information about the svn-src-all
mailing list