diff options
author | Max Gurtovoy <maxg@mellanox.com> | 2017-01-18 01:40:39 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-01-24 19:37:45 +0300 |
commit | 1e5db6c31ade4150c2e2b1a21e39f776c38fea39 (patch) | |
tree | badaf77660460ad816aec11c42dc6e96299819d2 /drivers/infiniband/ulp/iser/iscsi_iser.h | |
parent | 0a475ef4226e305bdcffe12b401ca1eab06c4913 (diff) | |
download | linux-1e5db6c31ade4150c2e2b1a21e39f776c38fea39.tar.xz |
IB/iser: Fix sg_tablesize calculation
For devices that can register page list that is bigger than
USHRT_MAX, we actually take the wrong value for sg_tablesize.
E.g: for CX4 max_fast_reg_page_list_len is 65536 (bigger than USHRT_MAX)
so we set sg_tablesize to 0 by mistake. Therefore, each IO that is
bigger than 4k splitted to "< 4k" chunks that cause performance degredation.
Remove wrong sg_tablesize assignment, and use the value that was set during
address resolution handler with the needed casting.
Cc: <stable@vger.kernel.org> # v4.5+
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp/iser/iscsi_iser.h')
0 files changed, 0 insertions, 0 deletions