/* ibmvfc_link_down - Handle a link down event from the adapter @vhost: ibmvfc host struct @state: ibmvfc host state to enter  */
static void ibmvfc_link_down(struct ibmvfc_host *vhost, enum ibmvfc_host_state state)
/* ibmvfc_link_down - Handle a link down event from the adapter @vhost: ibmvfc host struct @state: ibmvfc host state to enter  */
static void ibmvfc_link_down(struct ibmvfc_host *vhost, enum ibmvfc_host_state state)
{
	struct ibmvfc_target *tgt;
	ENTER;
	scsi_block_requests(vhost->host);
	list_for_each_entry(tgt, &vhost->targets, queue)
		ibmvfc_set_tgt_action(tgt, IBMVFC_TGT_ACTION_DEL_RPORT);
	ibmvfc_set_host_state(vhost, state);
	ibmvfc_set_host_action(vhost, IBMVFC_HOST_ACTION_TGT_DEL);
	vhost->events_to_log |= IBMVFC_AE_LINKDOWN;
	wake_up(&vhost->work_wait_q);
	LEAVE;
}