From: Tom Tucker Date: Tue, 12 Oct 2010 20:33:52 +0000 (-0500) Subject: svcrdma: Change DMA mapping logic to avoid the page_address kernel API X-Git-Tag: v2.6.37-rc1~113^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b432e6b3d9c1b4271c43f02b45136f33a8ed5820;p=pandora-kernel.git svcrdma: Change DMA mapping logic to avoid the page_address kernel API There was logic in the send path that assumed that a page containing data to send to the client has a KVA. This is not always the case and can result in data corruption when page_address returns zero and we end up DMA mapping zero. This patch changes the bus mapping logic to avoid page_address() where necessary and converts all calls from ib_dma_map_single to ib_dma_map_page in order to keep the map/unmap calls symmetric. Signed-off-by: Tom Tucker Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed