Currently, if the Bdev subsystem initialization fails, the initialization failed module does not call the fini function cleanup resource. However, null module use the 'spdk_io_device_register' and spdk_zmalloc to request resources. In failed path, it will cause resource leak when exiting the app. To avoid this, it will cleanup resources when module initialization fails. Change-Id: Ib1a89e5238252d69b6e64ea02a0bd826661349a5 Signed-off-by: Tianyu Yang <yangtianyu2@huawei.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/450105 Reviewed-by: GangCao <gang.cao@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
19 lines
444 B
Plaintext
19 lines
444 B
Plaintext
# SPDK vhost configuration file
|
|
#
|
|
# Please write all parameters using ASCII.
|
|
# The parameter must be quoted if it includes whitespace.
|
|
|
|
# Configuration syntax:
|
|
# Leading whitespace is ignored.
|
|
# Lines starting with '#' are comments.
|
|
# Lines ending with '\' are concatenated with the next line.
|
|
# Bracketed ([]) names define sections
|
|
|
|
[Global]
|
|
# Instance ID for multi-process support
|
|
# Default: 0
|
|
#InstanceID 0
|
|
|
|
[Null]
|
|
Dev null0 512 513
|