+12
−14
Loading
Instead of having the poller check the last ctrl_cmd_op to determine which function to call, just have ublk_ctrl_cmd store that function pointer in the ublk itself. This keeps all of the cmd_op-specific logic in one place rather than splitting it between the submit and poller functions. Signed-off-by:Jim Harris <james.r.harris@intel.com> Change-Id: I59f333d38a0d89cc4c50082177ff818135bcad37 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16454 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Xiaodong Liu <xiaodong.liu@intel.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>