From 30f21ac71b940b9890df03d18f4b159abf42b920 Mon Sep 17 00:00:00 2001 From: Andrew Reed Date: Tue, 13 Apr 2021 18:55:53 +0000 Subject: [PATCH] Fix background IOPS blocking until timeout --- pkg/collect/host_filesystem_performance_linux.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/collect/host_filesystem_performance_linux.go b/pkg/collect/host_filesystem_performance_linux.go index aa232a1d..6d17b576 100644 --- a/pkg/collect/host_filesystem_performance_linux.go +++ b/pkg/collect/host_filesystem_performance_linux.go @@ -97,6 +97,7 @@ func collectHostFilesystemPerformance(hostCollector *troubleshootv1beta2.Filesys jobs := hostCollector.BackgroundReadIOPSJobs + hostCollector.BackgroundWriteIOPSJobs done := make(chan bool, jobs) defer func() { + cancel() for i := 0; i < jobs; i++ { <-done }