Created
June 16, 2014 09:16
-
-
Save syuu1228/486982e7013e9ec8c2ef 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 08ad503f3cc427c04f9060016a405ea7c27900d8 Mon Sep 17 00:00:00 2001 | |
From: Takuya ASADA <syuu@cloudius-systems.com> | |
Date: Mon, 16 Jun 2014 06:44:47 +0900 | |
Subject: [PATCH 3/3] vmxnet3: force wakeup | |
--- | |
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 f8b836a..f9c40cb 100644 | |
--- a/include/osv/percpu_xmit.hh | |
+++ b/include/osv/percpu_xmit.hh | |
@@ -246,7 +246,7 @@ public: | |
// We want to wake a dispatcher only if there is a new work for it since | |
// otherwise there is no point for it to wake up. | |
// | |
- if (has_pending()) { | |
+ if (1 || has_pending()) { | |
_txq->wake_worker(); | |
} | |
@@ -360,7 +360,7 @@ private: | |
// pop()s our wait_record since it's allocated on our stack. | |
// | |
success = local_cpuq->push(new_buff_desc); | |
- if (success && !test_and_set_pending()) { | |
+ if (success && (1 || !test_and_set_pending())) { | |
_txq->wake_worker(); | |
} | |
@@ -390,7 +390,7 @@ private: | |
// and exchange in the wake_impl() by paying a price of an exchange | |
// operation here. | |
// | |
- if (!test_and_set_pending()) { | |
+ if (1 || !test_and_set_pending()) { | |
_txq->wake_worker(); | |
} | |
-- | |
1.9.3 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment