]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:49:35 +0000 (14:49 -0700)
commit02d45c5a79f90e8ddc046cc3a735e25dff45b08c
treead0981df6c1f65d6473aab83cb8e8e94e5870771
parent29b8eaffcba906afc07374022f43351903b94cee
3w-9xxx: don't unmap bounce buffered commands

commit 15e3d5a285ab9283136dba34bbf72886d9146706 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/3w-9xxx.c