From 6acb97b42aea6e51bc3877e3c8ca12a8e50c4343 Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <gonnet@google.com> Date: Mon, 23 Nov 2015 21:27:14 +0100 Subject: [PATCH] don't try to get super on psort tasks, as suggested by peter. --- src/runner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runner.c b/src/runner.c index 1e160a3d7e..9b8cd723f6 100644 --- a/src/runner.c +++ b/src/runner.c @@ -1215,7 +1215,7 @@ void *runner_main(void *data) { t->rid = r->cpuid; /* Set super to the first cell that I own. */ - if (t->type != task_type_rewait) { + if (t->type != task_type_rewait && t->type != task_type_psort) { if (ci->super != NULL && ci->super->owner == r->qid) super = ci->super; else if (cj != NULL && cj->super != NULL && cj->super->owner == r->qid) @@ -1291,7 +1291,7 @@ void *runner_main(void *data) { case task_type_psort: space_do_parts_sort(); break; - case task_type_rewait: + case task_type_rewait: for (struct task *t2 = (struct task *)t->ci; t2 != (struct task *)t->cj; t2++) { for (k = 0; k < t2->nr_unlock_tasks; k++) -- GitLab