From: Stephen M. Cameron Date: Fri, 26 Feb 2010 22:01:32 +0000 (-0600) Subject: cciss: fix scatter gather chain block dma direction kludge X-Git-Tag: v2.6.34-rc1~242^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ad6cdc20fbeea1e1744190c00cebb64e4b4c491;p=pandora-kernel.git cciss: fix scatter gather chain block dma direction kludge cciss: fix scatter gather chain block dma direction kludge The data direction for the chained block of scatter gather elements should always be PCI_DMA_TODEVICE, but was mistakenly set to the direction of the data transfer, then a kludge to fix it was added, in which pci_dma_sync_single_for_device or pci_dma_sync_single_for_cpu was called. If the correct direction is used in the first place, the kludge isn't needed. Signed-off-by: Stephen M. Cameron Signed-off-by: Jens Axboe --- Reading git-diff-tree failed