/* Returns: 1 if step will be retried / 0 if not  */
static int ibmvfc_retry_tgt_init(struct ibmvfc_target *tgt, void(*job_step)(struct ibmvfc_target *))
/* Returns: 1 if step will be retried / 0 if not  */
static int ibmvfc_retry_tgt_init(struct ibmvfc_target *tgt, void(*job_step)(struct ibmvfc_target *))
{
	if (++tgt->init_retries > IBMVFC_MAX_TGT_INIT_RETRIES) {
		ibmvfc_set_tgt_action(tgt, IBMVFC_TGT_ACTION_DEL_RPORT);
		wake_up(&tgt->vhost->work_wait_q);
		return 0;
	} else
		ibmvfc_init_tgt(tgt, job_step);
	return 1;
}