/* fc_change_queue_depth() - Change a device's queue depth @sdev: The SCSI device whose queue depth is to change @qdepth: The new queue depth @reason: The resason for the change  */
int fc_change_queue_depth(struct scsi_device *sdev, int qdepth, int reason)
/* fc_change_queue_depth() - Change a device's queue depth @sdev: The SCSI device whose queue depth is to change @qdepth: The new queue depth @reason: The resason for the change  */
int fc_change_queue_depth(struct scsi_device *sdev, int qdepth, int reason)
{
	switch (reason) {
	case SCSI_QDEPTH_DEFAULT:
		scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), qdepth);
		break;
	case SCSI_QDEPTH_QFULL:
		scsi_track_queue_full(sdev, qdepth);
		break;
	case SCSI_QDEPTH_RAMP_UP:
		scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), qdepth);
		break;
	default:
		return -EOPNOTSUPP;
	}
	return sdev->queue_depth;
}