/* fc_change_queue_type() - Change a device's queue type @sdev: The SCSI device whose queue depth is to change @tag_type: Identifier for queue type  */
int fc_change_queue_type(struct scsi_device *sdev, int tag_type)
/* fc_change_queue_type() - Change a device's queue type @sdev: The SCSI device whose queue depth is to change @tag_type: Identifier for queue type  */
int fc_change_queue_type(struct scsi_device *sdev, int tag_type)
{
	if (sdev->tagged_supported) {
		scsi_set_tag_type(sdev, tag_type);
		if (tag_type)
			scsi_activate_tcq(sdev, sdev->queue_depth);
		else
			scsi_deactivate_tcq(sdev, sdev->queue_depth);
	} else
		tag_type = 0;
	return tag_type;
}