aboutsummaryrefslogtreecommitdiffstats
path: root/syz-ci/syz-ci.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-01-02 17:49:22 +0100
committerAleksandr Nogikh <wp32pw@gmail.com>2023-01-19 11:26:54 +0100
commit4ac68196f128fe22ddd1e5b57d021c70f19e4894 (patch)
tree2afb6304deb57af561271568c4adf58d8ba9584a /syz-ci/syz-ci.go
parent4bd62a18b32a876e5ef2b024e454ccf793849050 (diff)
syz-ci: move build semaphore closer to builds
Currently it's held during the whole job processing, which can take too long. Adjust it so that it's only taken when we really begin to build the kernel or syzkaller.
Diffstat (limited to 'syz-ci/syz-ci.go')
-rw-r--r--syz-ci/syz-ci.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/syz-ci/syz-ci.go b/syz-ci/syz-ci.go
index 790a29f86..f877cfbfc 100644
--- a/syz-ci/syz-ci.go
+++ b/syz-ci/syz-ci.go
@@ -219,7 +219,7 @@ func main() {
case <-shutdownPending:
case <-updatePending:
}
- kernelBuildSem <- struct{}{} // wait for all current builds
+ buildSem.WaitAll() // wait for all current builds
close(stop)
wg.Done()
}()