Browse Source

Merge pull request #33376 from nhorman/keepalive

Ensure that a device mapper task is referenced until task is complete
Brian Goff 8 years ago
parent
commit
e4abe7c2ce
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pkg/devicemapper/devmapper.go

+ 1 - 0
pkg/devicemapper/devmapper.go

@@ -155,6 +155,7 @@ func (t *Task) run() error {
 	if res := DmTaskRun(t.unmanaged); res != 1 {
 		return ErrTaskRun
 	}
+	runtime.KeepAlive(t)
 	return nil
 }