]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cxgb4: Save the correct map length for fast_reg_page_lists
authorSteve Wise <swise@opengridcomputing.com>
Wed, 19 Mar 2014 12:14:45 +0000 (17:44 +0530)
committerRoland Dreier <roland@purestorage.com>
Thu, 20 Mar 2014 17:01:30 +0000 (10:01 -0700)
commitfa59efcf3466b6ba41d6b0cdc6a6b01b76f240a3
tree2fdd9abff8b60ffa4f8c60209f3e1be6f515917b
parent6b9ce54b9835926675c4adaf0a942ae55ab55c31
RDMA/cxgb4: Save the correct map length for fast_reg_page_lists

We cannot save the mapped length using the rdma max_page_list_len field
of the ib_fast_reg_page_list struct because the core code uses it.  This
results in an incorrect unmap of the page list in c4iw_free_fastreg_pbl().

I found this with dma mapping debugging enabled in the kernel.  The
fix is to save the length in the c4iw_fr_page_list struct.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
drivers/infiniband/hw/cxgb4/mem.c