+83
−14
Loading
Current control process continue to submit controll commands regardless the previous command succeeds or fails. This patch makes it proceed to the next state only after the previous command is correctly processed by kernel. Besides, RPC ublk_start_disk gets its response after cqe is received. Remove next_state_fn, and introduce current_cmd_op in struct spdk_ublk_dev to indicate whose cqe we are processing when cqe is received. Change-Id: I334308e7753aa1db1fcf36282e4eda8a45a36dae Signed-off-by:Richael Zhuang <richael.zhuang@arm.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19470 Reviewed-by:
Jim Harris <jim.harris@gmail.com> Community-CI: Mellanox Build Bot Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>