runc/libcontainer/intelrdt
Xiaochen Shen acb75d0e38 libcontainer: intelrdt: fix null intelrdt path issue in Destroy()
This patch fixes a corner case when destroy a container:

If we start a container without 'intelRdt' config set, and then we run
“runc update --l3-cache-schema/--mem-bw-schema” to add 'intelRdt' config
implicitly.

Now if we enter "exit" from the container inside, we will pass through
linuxContainer.Destroy() -> state.destroy() -> intelRdtManager.Destroy().
But in IntelRdtManager.Destroy(), IntelRdtManager.Path is still null
string, it hasn’t been initialized yet. As a result, the created rdt
group directory during "runc update" will not be removed as expected.

Signed-off-by: Xiaochen Shen <xiaochen.shen@intel.com>
2019-01-05 00:34:25 +08:00
..
intelrdt.go libcontainer: intelrdt: fix null intelrdt path issue in Destroy() 2019-01-05 00:34:25 +08:00
intelrdt_test.go libcontainer: intelrdt: add support for Intel RDT/MBA Software Controller in runc 2018-11-13 23:27:08 +08:00
stats.go libcontainer: intelrdt: add support for Intel RDT/MBA in runc 2018-10-16 14:29:29 +08:00
util_test.go libcontainer: add test cases for Intel RDT/CAT 2017-09-01 14:35:40 +08:00