+120
−7
+25
−0
Loading
Open the raid bdev internally to receive SPDK_BDEV_EVENT_REMOVE and stop the rebuild process from the event callback. Unregistering will be performed after the descriptor is closed. The process needs to be stopped before the destruct callback, because stopping the rebuild process may require unquiescing a range, which requires the bdev spin lock, which is destroyed before the bdev module's destruct() callback is called. We will look later at trying to fix this problem at bdev layer, to avoid bdev modules having to open themselves to avoid these kinds of problems. Change-Id: Ic9c5bf14f785aaf7629bf1c9d2e1889e254cec5f Signed-off-by:Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20830 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Jim Harris <jim.harris@samsung.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>