aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/3w-9xxx.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-04-23 09:48:51 +0200
committerBen Hutchings <ben@decadent.org.uk>2015-08-07 00:32:07 +0100
commitc245a412c7f135fb0a74b4c38b40f5b738ff8912 (patch)
tree1e14765d91da6fec14a8b7504896e5e308f5e801 /drivers/scsi/3w-9xxx.h
parent278b6cf917977593d14059b555f2204f8867b902 (diff)
downloadkernel_samsung_smdk4412-c245a412c7f135fb0a74b4c38b40f5b738ff8912.zip
kernel_samsung_smdk4412-c245a412c7f135fb0a74b4c38b40f5b738ff8912.tar.gz
kernel_samsung_smdk4412-c245a412c7f135fb0a74b4c38b40f5b738ff8912.tar.bz2
3w-9xxx: fix command completion race
commit 118c855b5623f3e2e6204f02623d88c09e0c34de upstream. The 3w-9xxx driver needs to tear down the dma mappings before returning the command to the midlayer, as there is no guarantee the sglist and count are valid after that point. Also remove the dma mapping helpers which have another inherent race due to the request_id index. 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: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/scsi/3w-9xxx.h')
-rw-r--r--drivers/scsi/3w-9xxx.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/scsi/3w-9xxx.h b/drivers/scsi/3w-9xxx.h
index 040f721..0fdc83c 100644
--- a/drivers/scsi/3w-9xxx.h
+++ b/drivers/scsi/3w-9xxx.h
@@ -324,11 +324,6 @@ static twa_message_type twa_error_table[] = {
#define TW_CURRENT_DRIVER_BUILD 0
#define TW_CURRENT_DRIVER_BRANCH 0
-/* Phase defines */
-#define TW_PHASE_INITIAL 0
-#define TW_PHASE_SINGLE 1
-#define TW_PHASE_SGLIST 2
-
/* Misc defines */
#define TW_9550SX_DRAIN_COMPLETED 0xFFFF
#define TW_SECTOR_SIZE 512