/* ibmvscsi_reset_host - Reset the connection to the server @hostdata: struct ibmvscsi_host_data to reset  */
static void ibmvscsi_reset_host(struct ibmvscsi_host_data *hostdata)
/* ibmvscsi_reset_host - Reset the connection to the server @hostdata: struct ibmvscsi_host_data to reset  */
static void ibmvscsi_reset_host(struct ibmvscsi_host_data *hostdata)
{
	scsi_block_requests(hostdata->host);
	atomic_set(&hostdata->request_limit, 0);
	purge_requests(hostdata, DID_ERROR);
	if ((ibmvscsi_ops->reset_crq_queue(&hostdata->queue, hostdata)) ||
	    (ibmvscsi_ops->send_crq(hostdata, 0xC001000000000000LL, 0)) ||
	    (vio_enable_interrupts(to_vio_dev(hostdata->dev)))) {
		atomic_set(&hostdata->request_limit, -1);
		dev_err(hostdata->dev, "error after reset\n");
	}
	scsi_unblock_requests(hostdata->host);
}