+52
−40
Loading
When users call the RPC to add a NVMe controller, block NVMe driver will create controller and block devices based on Namespaces, so wrapper the two actions together with a intermediate function, this will make the code looks more clean for the coming patch. Change-Id: Iddc072042eb2df90662c42e04427307ccf5d5633 Signed-off-by:Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/445658 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
wuzhouhui <wuzhouhui@kingsoft.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com>