diff options
author | Long Li <longli@microsoft.com> | 2019-09-06 19:24:20 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-09-24 05:09:42 +0200 |
commit | 0ed8810276907c8a633dc8cecc48dabb6678cd23 (patch) | |
tree | 82613f004b9c2effbf154b63590b8653566b3c04 /drivers/scsi/megaraid.c | |
parent | scsi: qedf: Remove always false 'tmp_prio < 0' statement (diff) | |
download | linux-0ed8810276907c8a633dc8cecc48dabb6678cd23.tar.xz linux-0ed8810276907c8a633dc8cecc48dabb6678cd23.zip |
scsi: storvsc: setup 1:1 mapping between hardware queue and CPU queue
storvsc doesn't use a dedicated hardware queue for a given CPU queue. When
issuing I/O, it selects returning CPU (hardware queue) dynamically based on
vmbus channel usage across all channels.
This patch advertises num_present_cpus() as number of hardware queues. This
will have upper layer setup 1:1 mapping between hardware queue and CPU
queue and avoid unnecessary locking when issuing I/O.
Link: https://lore.kernel.org/r/1567790660-48142-1-git-send-email-longli@linuxonhyperv.com
Signed-off-by: Long Li <longli@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/megaraid.c')
0 files changed, 0 insertions, 0 deletions