From 3ed9c078db4a6b3e704acf490dd5e3fa938c72ce Mon Sep 17 00:00:00 2001 From: des Date: Tue, 4 Sep 2012 22:19:33 +0000 Subject: [PATCH] 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) --- sys/vm/swap_pager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index d4a66b1f35d1..8bf1ca0042ff 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -1848,7 +1848,7 @@ swp_pager_meta_build(vm_object_t object, vm_pindex_t pindex, daddr_t swapblk) 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 @@ swp_pager_meta_build(vm_object_t object, vm_pindex_t pindex, daddr_t swapblk) 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;