If we use dd or bdevperf to run the xnvme bdev. the destruct function of xnvme misses to free dev while destructing bdev_xnvme. xnvme_dev_close does free dev, and we can put it in bdev_xnvme_free. Meanwhile fixing cleanup for delete_xnvme_bdev. This rpc for delete_xnvme_bdev doesn't really cleanup to remove the bdev from the list and free the names. Fixes issue: #2654 Signed-off-by: yidong0635 <dongx.yi@intel.com> Change-Id: I1c493cb8130b012d891ba8ee90cd0bfb127207d4 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14177 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: GangCao <gang.cao@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
accel | ||
bdev | ||
blob | ||
blobfs | ||
env_dpdk | ||
event | ||
scheduler | ||
sock | ||
Makefile |