+26
−14
Loading
We may add more dynamically allocated data to nvme_bdev structure in future. This refactoring will improve readability and will avoid memory reak in future. This patch includes a minor fix. nvme_bdev_free() had not destroy nvme_bdev's mutex. Signed-off-by:Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: Ic3c568100fa6f54a69a71ca91f7ea65fd31b5add Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17580 Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>