+23
−33
Loading
This lock was necessary to prevent accessing the base bdev desc by the io channels during base bdev removal. Instead of relying on the desc pointer, first check is_configured. If it is true, the descriptor won't become invalid until the end of the function, because now there is a spdk_for_each_channel() call between clearing is_configured and closing the descriptor. Signed-off-by:Artur Paszkiewicz <artur.paszkiewicz@intel.com> Change-Id: Ia7c3a87764c2992c3f96e89afd98b048f77c62b7 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22750 Community-CI: Mellanox Build Bot Reviewed-by:
Jim Harris <jim.harris@samsung.com> Reviewed-by:
Mateusz Kozlowski <mateusz.kozlowski@solidigm.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by:
Krzysztof Karas <krzysztof.karas@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>