diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-15 10:43:20 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-22 10:12:33 +0000 |
commit | f6899f9b9452b267b24969d82c890b66110ebee3 (patch) | |
tree | b8ceab61b16ce9345b51c0f93edfe27bad934b40 /bitbake/lib | |
parent | 3c76d0ad71b20ef12a8e63ae63737f4afe7c92d2 (diff) | |
download | poky-f6899f9b9452b267b24969d82c890b66110ebee3.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: 03cf0d9fedfef1ae43b3c3cac07710487857af36)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ae24a0f2d2d8b4b5ec10efabd0e9362e560832ea)
Signed-off-by: Fabio Berton <fabio.berton@criticaltechworks.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-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 c7f50fdeb1..f63a21914c 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -1975,6 +1975,12 @@ class RunQueueExecute: | |||
1975 | self.setbuildable(revdep) | 1975 | self.setbuildable(revdep) |
1976 | logger.debug(1, "Marking task %s as buildable", revdep) | 1976 | logger.debug(1, "Marking task %s as buildable", revdep) |
1977 | 1977 | ||
1978 | for t in self.sq_deferred.copy(): | ||
1979 | if self.sq_deferred[t] == task: | ||
1980 | logger.debug(2, "Deferred task %s now buildable" % t) | ||
1981 | del self.sq_deferred[t] | ||
1982 | update_scenequeue_data([t], self.sqdata, self.rqdata, self.rq, self.cooker, self.stampcache, self, summary=False) | ||
1983 | |||
1978 | def task_complete(self, task): | 1984 | def task_complete(self, task): |
1979 | self.stats.taskCompleted() | 1985 | self.stats.taskCompleted() |
1980 | bb.event.fire(runQueueTaskCompleted(task, self.stats, self.rq), self.cfgData) | 1986 | bb.event.fire(runQueueTaskCompleted(task, self.stats, self.rq), self.cfgData) |