diff options
author | Tom Tucker <tom@ogc.us> | 2010-10-13 00:33:52 +0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-10-19 03:51:31 +0400 |
commit | b432e6b3d9c1b4271c43f02b45136f33a8ed5820 (patch) | |
tree | bc557633646b380b8d5cc7e037a7ddc9036bbd2a /scripts | |
parent | ecec6e34e18660799444c5a163c7313a20fba701 (diff) | |
download | linux-b432e6b3d9c1b4271c43f02b45136f33a8ed5820.tar.xz |
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 <tom@ogc.us>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions