aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rdma/hfi1/user_pages.c
diff options
context:
space:
mode:
authorMitko Haralanov <mitko.haralanov@intel.com>2016-03-08 11:15:22 -0800
committerDoug Ledford <dledford@redhat.com>2016-03-21 15:55:24 -0400
commit5cd3a88d7f2b050164dc1df59a398294515126d9 (patch)
treed6d1175f3a20b9b49a6b99ec77123a6c8f9575a0 /drivers/staging/rdma/hfi1/user_pages.c
parentIB/hfi1: Adjust last address values for intervals (diff)
downloadlinux-dev-5cd3a88d7f2b050164dc1df59a398294515126d9.tar.xz
linux-dev-5cd3a88d7f2b050164dc1df59a398294515126d9.zip
IB/hfi1: Implement SDMA-side buffer caching
Add support for caching of user buffers used for SDMA transfers. This change improves performance by avoiding repeatedly pinning the pages of buffers, which are being re-used by the application. While the cost of the pinning operation has been made heavier by adding the extra code to search the cache tree, re-allocate pages arrays, and future cache evictions, that cost will be amortized against the savings when the same buffer is re-used. It is also worth noting that in most cases, the cost of pinning should be much lower due to the buffer already being in the cache. Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Reviewed-by: Dean Luick <dean.luick@intel.com> Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com> Signed-off-by: Jubin John <jubin.john@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma/hfi1/user_pages.c')
0 files changed, 0 insertions, 0 deletions