From: Steve Wise Date: Thu, 14 May 2009 21:34:28 +0000 (-0500) Subject: svcrdma: dma unmap the correct length for the RPCRDMA header page. X-Git-Tag: v2.6.30-rc8~20^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98779be861a05c4cb75bed916df72ec0cba8b53d;p=pandora-kernel.git svcrdma: dma unmap the correct length for the RPCRDMA header page. The svcrdma module was incorrectly unmapping the RPCRDMA header page. On IBM pserver systems this causes a resource leak that results in running out of bus address space (10 cthon iterations will reproduce it). The code was mapping the full page but only unmapping the actual header length. The fix is to only map the header length. I also cleaned up the use of ib_dma_map_page() calls since the unmap logic always uses ib_dma_unmap_single(). I made these symmetrical. Signed-off-by: Steve Wise Signed-off-by: Tom Tucker Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed