+13
−7
Loading
At SPDK shutdown, all existing bdevs are unregistered and then all bdev modules are finished. We had considered such scenario in the unit tests. However, we had not enabled I/O path statistics or created any bdev I/O channel. Hence, we overlooked this bug. nvme_ns is managed not by nvme_bdev but nvme_ctrlr. Hence, it was wrong that we held lock of nvme_bdev to copy I/O path statistics. As a bug fix, hold lock of nvme_ctrlr and get nvme_ns from nvme_ctrlr. To verify the fix, update the corresponding unit test case slightly. Fixes github issue #3629 Change-Id: Ic47057d5334f2f4044cccacb92d5497d2db1972a Signed-off-by:Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/25735 Reviewed-by:
Konrad Sztyber <ksztyber@nvidia.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK Automated Test System <spdkbot@gmail.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com>