]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: storvsc: setup 1:1 mapping between hardware queue and CPU queue
authorLong Li <longli@microsoft.com>
Fri, 6 Sep 2019 17:24:20 +0000 (10:24 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 24 Sep 2019 03:09:42 +0000 (23:09 -0400)
commitc56bf26141d29daf664c1485064242e11dca778c
tree82613f004b9c2effbf154b63590b8653566b3c04
parent801bb00524b4640431f4746d4640d06622f1a052
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>
drivers/scsi/storvsc_drv.c