Displaying 4 results from an estimated 4 matches for "next_pending".
Did you mean:
evt_pending
2006 Jul 04
1
ActiveRecord write stops script from responding to SIGTERM
We''ve got a small daemon we run on our servers, which looks something
like this
require File.dirname(__FILE__) + ''/../config/boot''
require File.dirname(__FILE__) + ''/../config/environment''
ActiveRecord::Base.establish_connection
do
m = Message.next_pending
if m
m.do_something
else
sleep 5
end
end
Stuff gets place in this queue through other interactions with our web
application and this guy processes them. This part all works fine.
The problem is when we try and stop the daemon running by sending a
SIGTERM. If the daemon never found...
2007 Jan 17
11
[PATCH] Add RCU support into Xen - Repost
...eriod (if necessary).
+ */
+/*
+ * Register a new batch of callbacks, and start it up if there is
currently no
+ * active batch and the batch to be registered has not already
occurred.
+ * Caller must hold rcu_ctrlblk.lock.
+ */
+static void rcu_start_batch(struct rcu_ctrlblk *rcp)
+{
+ if (rcp->next_pending &&
+ rcp->completed == rcp->cur) {
+ rcp->next_pending = 0;
+ /*
+ * next_pending == 0 must be visible in
+ * __rcu_process_callbacks() before it can see new value
of cur.
+ */
+ smp_wmb();
+ rcp->cur++;
+
+ rcp->cpumask = cpu_online_map;
+ }
+}
+
+/*
+ * cpu wen...
2007 Jan 17
11
[PATCH] Add RCU support into Xen - Repost
...eriod (if necessary).
+ */
+/*
+ * Register a new batch of callbacks, and start it up if there is
currently no
+ * active batch and the batch to be registered has not already
occurred.
+ * Caller must hold rcu_ctrlblk.lock.
+ */
+static void rcu_start_batch(struct rcu_ctrlblk *rcp)
+{
+ if (rcp->next_pending &&
+ rcp->completed == rcp->cur) {
+ rcp->next_pending = 0;
+ /*
+ * next_pending == 0 must be visible in
+ * __rcu_process_callbacks() before it can see new value
of cur.
+ */
+ smp_wmb();
+ rcp->cur++;
+
+ rcp->cpumask = cpu_online_map;
+ }
+}
+
+/*
+ * cpu wen...
2012 Feb 08
18
[PATCH 0 of 4] Prune outdated/impossible preprocessor symbols, and update VIOAPIC emulation
Patch 1 removes CONFIG_SMP
Patch 2 removes separate smp_{,r,w}mb()s as a result of patch 1
Patch 4 removes __ia64__ defines from the x86 arch tree
Patch 3 is related to patch 4 and changes the VIOAPIC to emulate
version 0x20 as a performance gain. It preceeds Patch 4 so as to be
more clear about the functional change.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>