From 85c458e2118d8ae1352a1deb95a9bb14e1c1a2f8 Mon Sep 17 00:00:00 2001 From: FengyunPan Date: Tue, 7 Nov 2017 15:51:04 +0800 Subject: [PATCH] Checking Cinder disk when tickers are delivered Cinder's WaitForAttach() runs probeAttachedVolume() 2 times per second, that triggers SCSI rescan and generates many udev "change" events. --- pkg/volume/cinder/attacher.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/volume/cinder/attacher.go b/pkg/volume/cinder/attacher.go index 048fcabe9dc..dab97b9b9c4 100644 --- a/pkg/volume/cinder/attacher.go +++ b/pkg/volume/cinder/attacher.go @@ -240,7 +240,6 @@ func (attacher *cinderDiskAttacher) WaitForAttach(spec *volume.Spec, devicePath defer timer.Stop() for { - probeAttachedVolume() select { case <-ticker.C: glog.V(5).Infof("Checking Cinder disk %q is attached.", volumeID)