diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-05 11:22:56 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-10-11 21:57:28 +0100 |
commit | 6d753d6cbea2d2540392be6e75136e6ccf16cd43 (patch) | |
tree | a57fc0238a54b522b6f54681f1b9b18f22d5c473 /bitbake | |
parent | 77dd72754907db274cbd0ab2bef35cb539e32758 (diff) | |
download | poky-6d753d6cbea2d2540392be6e75136e6ccf16cd43.tar.gz |
bitbake: runqueue: Improve deadlock warning messages
Tweak the deadlock breaking messages to be explict about which task is
blocked on which other task. The messages currently imply it is "freeing"
the blocking task which is confusing.
(Bitbake rev: d1b84e3cfe9fb8d282d4b700a9fe31891e00d837)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit cf7f60b83adaded180f6717cb4681edc1d65b66d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index a23f7a8918..0d89740b9a 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -2254,10 +2254,12 @@ class RunQueueExecute: | |||
2254 | 2254 | ||
2255 | # No more tasks can be run. If we have deferred setscene tasks we should run them. | 2255 | # No more tasks can be run. If we have deferred setscene tasks we should run them. |
2256 | if self.sq_deferred: | 2256 | if self.sq_deferred: |
2257 | tid = self.sq_deferred.pop(list(self.sq_deferred.keys())[0]) | 2257 | deferred_tid = list(self.sq_deferred.keys())[0] |
2258 | logger.warning("Runqeueue deadlocked on deferred tasks, forcing task %s" % tid) | 2258 | blocking_tid = self.sq_deferred.pop(deferred_tid) |
2259 | if tid not in self.runq_complete: | 2259 | logger.warning("Runqeueue deadlocked on deferred tasks, forcing task %s blocked by %s" % (deferred_tid, blocking_tid)) |
2260 | self.sq_task_failoutright(tid) | 2260 | if blocking_tid not in self.runq_complete: |
2261 | logger.warning("Failing blocking task %s" % (blocking_tid)) | ||
2262 | self.sq_task_failoutright(blocking_tid) | ||
2261 | return True | 2263 | return True |
2262 | 2264 | ||
2263 | if self.failed_tids: | 2265 | if self.failed_tids: |