Re: RTAI 5.0-test2 released

Sebastian Kuzminsky <[email protected]>
Newsgroups gmane.linux.real-time.rtai
Message-ID <[email protected]>
On 06/28/2016 03:34 PM, Sebastian Kuzminsky wrote:
> This led me to look closer at the hashed registry code, and it looks to
> me like there's a bug there (though probably not the bug causing the
> lockups i'm seeing):

Switching to the old registry makes the lockups i'm seeing go away, or 
at least become much more rare.  See the attached patch.

With that patch, I have not yet had a lockup after ~15 minutes so far of 
continuous testing.  Without that patch my tests lock up within the 
first minute.


-- 
Sebastian Kuzminsky

_______________________________________________
Rtai mailing list
[email protected]
https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
old-registry.patch (text/x-patch, 678 B)
diff --git a/base/sched/api.c b/base/sched/api.c
index 1f8503e..9d44933 100644
--- a/base/sched/api.c
+++ b/base/sched/api.c
@@ -1206,7 +1206,7 @@ RTAI_SYSCALL_MODE int rt_named_task_delete(RT_TASK *task)
 
 /* +++++++++++++++++++++++++++++++ REGISTRY +++++++++++++++++++++++++++++++++ */
 
-#define HASHED_REGISTRY
+// #define HASHED_REGISTRY
 
 #ifdef HASHED_REGISTRY
 
@@ -1799,7 +1799,7 @@ unsigned long is_process_registered(struct task_struct *tsk)
 {
         void *adr;
 
-        if ((adr = tsk->rtai_tskext(TSKEXT0))) {
+        if ((adr = rtai_tskext(tsk, TSKEXT0))) {
 		int slot;
 		for (slot = 1; slot <= max_slots; slot++) {
 			if (lxrt_list[slot].adr == adr) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.