diff options
author | Steve Wise <swise@opengridcomputing.com> | 2009-05-14 16:34:28 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-05-27 18:57:24 -0400 |
commit | 98779be861a05c4cb75bed916df72ec0cba8b53d (patch) | |
tree | 6c7f51832c835cc3e98796fff83abc440edb3255 /lib/swiotlb.c | |
parent | 7f4218354fe312b327af06c3d8c95ed5f214c8ca (diff) |
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 <swise@opengridcomputing.com>
Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'lib/swiotlb.c')
0 files changed, 0 insertions, 0 deletions