Created
June 16, 2014 07:31
-
-
Save syuu1228/2a0d7e86512f4fb071e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From ceb3966ac9758de157a726783af17aaa7d7a79dd Mon Sep 17 00:00:00 2001 | |
From: Takuya ASADA <syuu@cloudius-systems.com> | |
Date: Mon, 9 Jun 2014 05:24:41 -0700 | |
Subject: [PATCH 1/3] vmxnet3: change memory ordering on _check_empty_queues | |
--- | |
include/osv/percpu_xmit.hh | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
diff --git a/include/osv/percpu_xmit.hh b/include/osv/percpu_xmit.hh | |
index 3fed36b..f8b836a 100644 | |
--- a/include/osv/percpu_xmit.hh | |
+++ b/include/osv/percpu_xmit.hh | |
@@ -425,14 +425,14 @@ private: | |
// PENDING (packets) controling functions | |
bool has_pending() const { | |
- return _check_empty_queues.load(std::memory_order_acquire); | |
+ return _check_empty_queues.load(std::memory_order_seq_cst); | |
} | |
bool test_and_set_pending() { | |
- return _check_empty_queues.exchange(true, std::memory_order_acq_rel); | |
+ return _check_empty_queues.exchange(true, std::memory_order_seq_cst); | |
} | |
void clear_pending() { | |
- _check_empty_queues.store(false, std::memory_order_release); | |
+ _check_empty_queues.store(false, std::memory_order_seq_cst); | |
} | |
private: | |
-- | |
1.9.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment