OSDN Git Service

scsi: wd719x: use per-command private data
authorChristoph Hellwig <hch@lst.de>
Fri, 9 Nov 2018 15:54:05 +0000 (16:54 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 15 Nov 2018 19:27:08 +0000 (14:27 -0500)
commitfde46e968258500fdf94ab9a450a958e4062174b
tree005272b8de47f88daba5d0be10812173c0268a1b
parentd9c30dbca7994859d14eef51813454adaff1a9a0
scsi: wd719x: use per-command private data

Add the SCB onto the scsi command allocation and use dma streaming mappings
for it only when in use.  This avoid possibly calling dma_alloc_coherent
under a lock or even in irq context, while also making the code simpler.

Thanks to Ondrej Zary for testing and various bug fixes.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/wd719x.c
drivers/scsi/wd719x.h