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 }