History

scsi: hisi_sas: Stop using queue #0 always for v2 hw

In commit 8d98416a55eb ("scsi: hisi_sas: Switch v3 hw to MQ"), the dispatch function was changed to choose the delivery queue based on the request tag HW queue index. This heavily degrades performance for v2 hw, since the HW queues are not exposed there, and, as such, HW queue #0 is used for every command. Revert to previous behaviour for when nr_hw_queues is not set, that being to choose the HW queue based on target device index.

John Garry committed 6 years ago

Commit fab09aa1 parent 665e0221 file · +1 −1Browse files

Unified · Split

drivers/scsi/hisi_sas/hisi_sas_main.c+1−1
@@ -445,7 +445,7 @@ static int hisi_sas_task_prep(struct sas_task *task, · 444 unmodified lines
445 }445 }
446 }446 }
447 447
448 if (scmd) {448 if (scmd && hisi_hba->shost->nr_hw_queues) {
449 unsigned int dq_index;449 unsigned int dq_index;
450 u32 blk_tag;450 u32 blk_tag;
451 451

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t