Merge pull request #33376 from nhorman/keepalive

Ensure that a device mapper task is referenced until task is complete
This commit is contained in:
Brian Goff 2017-05-24 15:57:04 -04:00 committed by GitHub
commit e4abe7c2ce

View file

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