Blame SOURCES/rhbz1073640.7.patch

f43afa
From 9ee1bfe9ac1c92a0640e64a463efd43c9c5a57ac Mon Sep 17 00:00:00 2001
f43afa
From: Torsten Polle <Torsten.Polle@gmx.de>
f43afa
Date: Fri, 7 Mar 2014 14:39:31 -0600
f43afa
Subject: [PATCH 7/8] Fix: stap/staprun deadlocks when probing ends.
f43afa
f43afa
stap_stop_task_finder() exits utrace through utrace_exit(). At that
f43afa
time, there might be outstanding task workers. Hence, waiting for
f43afa
exiting the task work waits forever. Therefore exiting the task work
f43afa
is done after canceling all task workers.
f43afa
---
f43afa
 runtime/linux/task_finder2.c | 4 ++--
f43afa
 1 file changed, 2 insertions(+), 2 deletions(-)
f43afa
f43afa
diff --git a/runtime/linux/task_finder2.c b/runtime/linux/task_finder2.c
f43afa
index e8f33a3..a3abc16 100644
f43afa
--- a/runtime/linux/task_finder2.c
f43afa
+++ b/runtime/linux/task_finder2.c
f43afa
@@ -1875,10 +1875,10 @@ stap_stop_task_finder(void)
f43afa
 	debug_task_finder_report();
f43afa
 #endif
f43afa
 
f43afa
-	utrace_exit();
f43afa
-
f43afa
 	/* Make sure all outstanding task work requests are canceled. */
f43afa
 	__stp_tf_cancel_task_work();
f43afa
+
f43afa
+	utrace_exit();
f43afa
 }
f43afa
 
f43afa
 #endif /* TASK_FINDER2_C */
f43afa
-- 
f43afa
1.8.3.1
f43afa