Re: [PATCH v2 0/4] fix dma_unmap_sg() parameter in some scsi drivers

2018-01-22 Thread Martin K. Petersen
Chenxiang, > does anyone notice and review this issue? It's a pretty crappy interface that has to have explanatory "notes" throughout the documentation saying "Don't use this the obvious way, do this instead". As evidenced by 5 drivers messing it up. Your change looks good to me. But before I

Re: [PATCH v2 0/4] fix dma_unmap_sg() parameter in some scsi drivers

2018-01-21 Thread chenxiang (M)
Hi, does anyone notice and review this issue? 在 2018/1/4 10:36, chenxiang 写道: According to Documentation/DMA-API.txt, all the parameters of dma_unmap_sg() must be the same as those and passed in to the scatter/gather mapping API. But in scsi drivers such as ibmscsi_tgt/iscsi/mvsas/pm8001, the

[PATCH v2 0/4] fix dma_unmap_sg() parameter in some scsi drivers

2018-01-03 Thread chenxiang
According to Documentation/DMA-API.txt, all the parameters of dma_unmap_sg() must be the same as those and passed in to the scatter/gather mapping API. But in scsi drivers such as ibmscsi_tgt/iscsi/mvsas/pm8001, the parameter of dma_unmap_sg() is number of elements after mapping. So fix them.