Hi,
在 2023/11/16 2:19, Bart Van Assche 写道:
On 11/14/23 23:24, Yu Kuai wrote:
在 2023/11/15 2:04, Bart Van Assche 写道:
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index d7f51b84f3c7..872f87001374 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -442,6 +442,7 @@ struct Scsi_Host *scsi_host_alloc(const struct
scsi_host_template *sht, int priv
shost->no_write_same = sht->no_write_same;
shost->host_tagset = sht->host_tagset;
shost->queuecommand_may_block = sht->queuecommand_may_block;
+ shost->disable_fair_tag_sharing = sht->disable_fair_tag_sharing;
Can we also consider to disable fair tag sharing by default for the
driver that total driver tags is less than a threshold?
I don't want to do this because such a change could disable fair tag
sharing for drivers that support both SSDs and hard disks being associated
with a single SCSI host.
Ok, then is this possible to add a sysfs entry to disable/enable fair
tag sharing manually?
Thanks,
Kuai
Thanks,
Bart.
.