numam-spdk/lib/bdev/nvme
Liu Xiaodong 8fa8310be4 bdev_nvme: retain nvme_ctrl after delete_bdev
When deleting bdev of NVMe type by delete_bdev rpc,
if the bdev is the last one NVMe bdev of the NVMe
controller, the NVMe controller will be deleted too.
With this change, the nvme_ctrlr will be retained
inside SPDK app after delete_bdev rpc. And the
nvme_ctrlr can be deleted by delete_nvme_controller
rpc.

Change-Id: Icad6c24d342b9e4bcb69ec7a4b1a352c2df113f2
Signed-off-by: Liu Xiaodong <xiaodong.liu@intel.com>
Reviewed-on: https://review.gerrithub.io/431582
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-11-02 19:02:43 +00:00
..
bdev_nvme_rpc.c scripts/rpc.py: add method "get_nvme_controllers" 2018-10-25 17:26:25 +00:00
bdev_nvme.c bdev_nvme: retain nvme_ctrl after delete_bdev 2018-11-02 19:02:43 +00:00
bdev_nvme.h bdev_nvme: retain nvme_ctrl after delete_bdev 2018-11-02 19:02:43 +00:00
Makefile scripts/rpc.py: add method "send_nvme_cmd" 2018-10-22 22:01:14 +00:00
nvme_rpc.c scripts/rpc.py: add method "send_nvme_cmd" 2018-10-22 22:01:14 +00:00