+34
−5
Loading
When there are lots of inflight IOs during user recovery, the kernel `ublk_drv` driver needs some time to set the device state to UBLK_S_DEV_QUIESCED, if we start the new spdk_tgt quickly and send UBLK_CMD_START_USER_RECOVERY command to kernel `ublk_drv` driver during the transition period, kernel `ublk_drv` driver will return -EBUSY to user, so add a delay retry here to read device state again. Change-Id: I07cb92501e07b785a92df20dd6a4622da67372e9 Signed-off-by:Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23484 Community-CI: Mellanox Build Bot Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>