+8
−0
Loading
g_devlist_mutex is not hold during invokation of create_cb during getting channel, because of it spdk_io_device_unregister can execute simoustanly. However, device would not be destroyed as just created channel is holding refcnt. If create_cb is successful - device will be destroyed lately after put_io_channel, but if it fails - we do not check whether it is needed to destroy dev. Add missed check and device destruction. Change-Id: I5e81542f9aafefa5ee843d67435403d0f9aca235 Signed-off-by:Vasilii Ivanov <iwanovvvasilij@gmail.com> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/25601 Reviewed-by:
Jim Harris <jim.harris@nvidia.com> Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Tested-by:
SPDK Automated Test System <spdkbot@gmail.com> Community-CI: Mellanox Build Bot Reviewed-by:
Konrad Sztyber <ksztyber@nvidia.com>