]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: gdth: reuse dma coherent allocation in gdth_show_info
authorChristoph Hellwig <hch@lst.de>
Wed, 12 Dec 2018 07:41:19 +0000 (08:41 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 9 Jan 2019 02:57:42 +0000 (21:57 -0500)
commit101233418d720ea1809d7e4869c3ca85c1c4db9b
tree7ee0ab62e3525d48b920f24041b8bfd731da74f7
parent6fa9b86e552d2bf3655ae9b1d3cf45bb11a3cf2f
scsi: gdth: reuse dma coherent allocation in gdth_show_info

gdth_show_info currently allocs and frees a dma buffer four times which
isn't very efficient. Reuse a single allocation instead.

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