From 9174555f6d933d77dace419771065710ef6df014 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 24 Nov 2025 08:04:20 +0100 Subject: pkg/osutil: move Semaphore from pkg/instance Semaphore is a very low-level primitive type, while pkg/instance is a very high-level package with lots of deps. Semaphore does not belong there, and may lead to cyclic deps if we use it more. Move it to pkg/osutil. It's not really OS-specific, but we don't have a better package. --- pkg/bisect/bisect.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/bisect/bisect.go') diff --git a/pkg/bisect/bisect.go b/pkg/bisect/bisect.go index 55a5d44f7..a37436495 100644 --- a/pkg/bisect/bisect.go +++ b/pkg/bisect/bisect.go @@ -36,8 +36,8 @@ type Config struct { Syzkaller SyzkallerConfig Repro ReproConfig Manager *mgrconfig.Config - BuildSemaphore *instance.Semaphore - TestSemaphore *instance.Semaphore + BuildSemaphore *osutil.Semaphore + TestSemaphore *osutil.Semaphore BuildCPUs int // CrossTree specifies whether a cross tree bisection is to take place, i.e. // Kernel.Commit is not reachable from Kernel.Branch. -- cgit mrf-deployment