Re: [PATCH v2] scsi: ufs: ufs-mediatek: configure individual LU queue flags
From: Bart Van Assche
Date: Wed Oct 09 2024 - 13:32:49 EST
On 10/8/24 10:38 PM, ed.tsai@xxxxxxxxxxxx wrote:
In addition, because the SCSI probe_type = PROBE_PREFFER_ASYNCHRONOUS,
sd_probe() is completed by another thread, causing the sd index to be
obtained asynchronously. Directly setting the queue through sysfs is
cumbersome. We do not need to change the queue settings at runtime, so
a simpler and more intuitive approach is to set its flag once the SCSI
device is confirmed to be ready.
Please set this flag from user space. The example below shows that it is
easy to set this flag from user space without knowing which sd* name
has been assigned to the block device:
$ adb root
$ adb shell 'cat
/sys/class/scsi_device/0:0:0:2/device/block/*/queue/rq_affinity'
1
$ adb shell 'echo 2 > $(echo
/sys/class/scsi_device/0:0:0:2/device/block/*/queue/rq_affinity)'
$ adb shell 'cat
/sys/class/scsi_device/0:0:0:2/device/block/*/queue/rq_affinity'
2
Thanks,
Bart.