From 78dfc6bc33c28956738bfb5d0353562f2c498821 Mon Sep 17 00:00:00 2001 From: AdaAibaby Date: Mon, 1 Jun 2026 17:22:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(nbd):=20change=20NBD=20status=20poll=20slee?= =?UTF-8?q?p=20from=20100ns=20to=20100=C2=B5s=20to=20avoid=20useless=20bus?= =?UTF-8?q?y=20spinning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/orchestrator/pkg/sandbox/nbd/path_direct.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/orchestrator/pkg/sandbox/nbd/path_direct.go b/packages/orchestrator/pkg/sandbox/nbd/path_direct.go index 212ed4fc6e..a25009c87e 100644 --- a/packages/orchestrator/pkg/sandbox/nbd/path_direct.go +++ b/packages/orchestrator/pkg/sandbox/nbd/path_direct.go @@ -231,7 +231,7 @@ func (d *DirectPathMount) Open(ctx context.Context) (retDeviceIndex uint32, err break } - time.Sleep(100 * time.Nanosecond) + time.Sleep(100 * time.Microsecond) } telemetry.ReportEvent(ctx, "connected to NBD") @@ -324,7 +324,7 @@ func disconnectNBDWithTimeout(ctx context.Context, deviceIndex uint32, timeout t if err == nil && !s.Connected { break } - time.Sleep(100 * time.Nanosecond) + time.Sleep(100 * time.Microsecond) } return nil