diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-07 12:02:31 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-08 15:33:14 +0100 |
commit | fd9c3a5a14fb54268707f6ece6a5fa11e4378200 (patch) | |
tree | 6eae29c62a2a860ce75074d6c7eb0a1628dcb666 /bitbake/lib/bb/runqueue.py | |
parent | 7e599a1feb4fe94f25840b24a21e8db0e751e3e3 (diff) | |
download | poky-fd9c3a5a14fb54268707f6ece6a5fa11e4378200.tar.gz |
bitbake: runqueue: Fix issues with multiconfig deferred task deadlock messages
In multiconfig builds with large numbers of identical tasks, builds were
deadlocking after recent runqueue changes upon rebuilds where there was
heavy sstate usage (i.e. on second builds after a first completed).
The issue was that deferred tasks were being left indefinitely on
the deferred list. The deadlock handler was then "breaking" things
by failing tasks that had already succeeded, leading to the task
being on both covered and not covered lists, giving a further error.
The fix is to clean up the deferred task list when each setscene task
completes. I'd previously been hoping to avoid iterating that list
but it appears unavoidable.
[YOCTO #14342]
(Bitbake rev: ae24a0f2d2d8b4b5ec10efabd0e9362e560832ea)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index f5f25c5b7d..5ccf755f1a 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -1904,6 +1904,12 @@ class RunQueueExecute: | |||
1904 | self.setbuildable(revdep) | 1904 | self.setbuildable(revdep) |
1905 | logger.debug("Marking task %s as buildable", revdep) | 1905 | logger.debug("Marking task %s as buildable", revdep) |
1906 | 1906 | ||
1907 | for t in self.sq_deferred.copy(): | ||
1908 | if self.sq_deferred[t] == task: | ||
1909 | logger.debug2("Deferred task %s now buildable" % t) | ||
1910 | del self.sq_deferred[t] | ||
1911 | update_scenequeue_data([t], self.sqdata, self.rqdata, self.rq, self.cooker, self.stampcache, self, summary=False) | ||
1912 | |||
1907 | def task_complete(self, task): | 1913 | def task_complete(self, task): |
1908 | self.stats.taskCompleted() | 1914 | self.stats.taskCompleted() |
1909 | bb.event.fire(runQueueTaskCompleted(task, self.stats, self.rq), self.cfgData) | 1915 | bb.event.fire(runQueueTaskCompleted(task, self.stats, self.rq), self.cfgData) |