[PATCH] scsi: ufs: ufs-mediatek: configure individual LU queue flags
Bart Van Assche
bvanassche at acm.org
Tue Oct 8 10:38:51 PDT 2024
On 10/7/24 11:59 PM, ed.tsai at mediatek.com wrote:
> +static void ufs_mtk_config_scsi_dev(struct scsi_device *sdev)
> +{
> + struct ufs_hba *hba = shost_priv(sdev->host);
> +
> + dev_dbg(hba->dev, "lu %llu scsi device configured", sdev->lun);
> + if (sdev->lun == 2)
> + blk_queue_flag_set(QUEUE_FLAG_SAME_FORCE, sdev->reqeust_queue);
> +}
There are no block drivers in the upstream kernel that set
QUEUE_FLAG_SAME_FORCE. An explanation is missing from the patch
description why this flag is set from the UFS driver instead of by
writing the value "2" into /sys/class/block/$bdev/queue/rq_affinity.
Additionally, an explanation is missing why QUEUE_FLAG_SAME_FORCE is
set but QUEUE_FLAG_SAME_COMP not.
Bart.
More information about the Linux-mediatek
mailing list