Skip to content
Commit e8144ac2 authored by Bart Van Assche's avatar Bart Van Assche Committed by Sasha Levin
Browse files

IB/srp: Fix completion vector assignment algorithm

[ Upstream commit 3a148896 ]

Ensure that cv_end is equal to ibdev->num_comp_vectors for the
NUMA node with the highest index. This patch improves spreading
of RDMA channels over completion vectors and thereby improves
performance, especially on systems with only a single NUMA node.
This patch drops support for the comp_vector login parameter by
ignoring the value of that parameter since I have not found a
good way to combine support for that parameter and automatic
spreading of RDMA channels over completion vectors.

Fixes: d92c0da7

 ("IB/srp: Add multichannel support")
Reported-by: default avatarAlexander Schmid <alex@modula-shop-systems.de>
Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Cc: Alexander Schmid <alex@modula-shop-systems.de>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@microsoft.com>
parent 03b925ee
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment