diff options
author | Christoph Hellwig <hch@lst.de> | 2018-11-09 16:54:05 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-11-15 20:27:08 +0100 |
commit | fde46e968258500fdf94ab9a450a958e4062174b (patch) | |
tree | 005272b8de47f88daba5d0be10812173c0268a1b /drivers/scsi/wd719x.h | |
parent | scsi: wd719x: there should be no active SCBs on removal (diff) | |
download | linux-fde46e968258500fdf94ab9a450a958e4062174b.tar.xz linux-fde46e968258500fdf94ab9a450a958e4062174b.zip |
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>
Diffstat (limited to 'drivers/scsi/wd719x.h')
-rw-r--r-- | drivers/scsi/wd719x.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/wd719x.h b/drivers/scsi/wd719x.h index 0455b1633ca7..abaabd419a54 100644 --- a/drivers/scsi/wd719x.h +++ b/drivers/scsi/wd719x.h @@ -74,7 +74,6 @@ struct wd719x { void *hash_virt; /* hash table CPU address */ dma_addr_t hash_phys; /* hash table bus address */ struct list_head active_scbs; - struct list_head free_scbs; }; /* timeout delays in microsecs */ |