summaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi_lib_dma.c
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2018-03-13 12:42:42 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2018-03-15 06:31:13 +0300
commitb5b6e8c8d3b4cbeb447a0f10c7d5de3caa573299 (patch)
tree50a246c6410e50d21c359d84b328b722860627d2 /drivers/scsi/scsi_lib_dma.c
parent2f31115e940c4afd49b99c33123534e2ac924ffb (diff)
downloadlinux-b5b6e8c8d3b4cbeb447a0f10c7d5de3caa573299.tar.xz
scsi: virtio_scsi: fix IO hang caused by automatic irq vector affinity
Since commit 84676c1f21e8ff5 ("genirq/affinity: assign vectors to all possible CPUs") it is possible to end up in a scenario where only offline CPUs are mapped to an interrupt vector. This is only an issue for the legacy I/O path since with blk-mq/scsi-mq an I/O can't be submitted to a hardware queue if the queue isn't mapped to an online CPU. Fix this issue by forcing virtio-scsi to use blk-mq. [mkp: commit desc] Cc: Omar Sandoval <osandov@fb.com>, Cc: "Martin K. Petersen" <martin.petersen@oracle.com>, Cc: James Bottomley <james.bottomley@hansenpartnership.com>, Cc: Christoph Hellwig <hch@lst.de>, Cc: Don Brace <don.brace@microsemi.com> Cc: Kashyap Desai <kashyap.desai@broadcom.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Mike Snitzer <snitzer@redhat.com> Cc: Laurence Oberman <loberman@redhat.com> Fixes: 84676c1f21e8 ("genirq/affinity: assign vectors to all possible CPUs") Signed-off-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_lib_dma.c')
0 files changed, 0 insertions, 0 deletions