95754cd170
io_target_group manages io_targets, and hence checking g_head should be done earlier than checking g_target_count. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I112018d8f487b387ae5f4f444a342be2c8da167d Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/479350 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com>