Loading
bdev/nvme: Call disconnected_cb always if registered and rc is negative
Previous code had a potential bug that disconnected_cb was lost if rc was negative but not -ENXIO. However, NVMe driver basically returns only -ENXIO in this case. We can add the second parameter success or rc to disconnected_cb but it will make the code more complicated. Hence, let's simply call disconnected_cb if it is registered and rc is negative. Signed-off-by:Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I7cda48f25335a6c504053424b9eae785552ed286 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18210 Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>