]> git.baikalelectronics.ru Git - kernel.git/commit
3w-9xxx: don't unmap bounce buffered commands
authorChristoph Hellwig <hch@lst.de>
Sat, 3 Oct 2015 17:16:07 +0000 (19:16 +0200)
committerJames Bottomley <JBottomley@Odin.com>
Wed, 7 Oct 2015 17:24:48 +0000 (10:24 -0700)
commit0211c98a84d9765176e80a6d0daa0269742bb541
tree8c94bda0e97d809ed69bfe5e51a1a064d5e27a9d
parent18b635d1a57509bc1c53842f410ff4fc23e188d1
3w-9xxx: don't unmap bounce buffered commands

3w controller don't dma map small single SGL entry commands but instead
bounce buffer them.  Add a helper to identify these commands and don't
call scsi_dma_unmap for them.

Based on an earlier patch from James Bottomley.

Fixes: 118c85 ("3w-9xxx: fix command completion race")
Reported-by: Tóth Attila <atoth@atoth.sote.hu>
Tested-by: Tóth Attila <atoth@atoth.sote.hu>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Adam Radford <aradford@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/3w-9xxx.c