Commit a44074f1 authored by Bart Van Assche's avatar Bart Van Assche Committed by Doug Ledford
Browse files

IB/srp: Fix reconnection failure handling

Although it is possible to let SRP I/O continue if a reconnect
results in a reduction of the number of channels, the current
code does not handle this scenario correctly. Instead of making
the reconnect code more complex, consider this as a reconnection

Signed-off-by: default avatarBart Van Assche <>
Cc: Sagi Grimberg <>
Cc: Sebastian Parschauer <>
Cc: <> #v3.19
Signed-off-by: default avatarDoug Ledford <>
parent c014c8cd
......@@ -1243,11 +1243,8 @@ static int srp_rport_reconnect(struct srp_rport *rport)
for (i = 0; i < target->ch_count; i++) {
ch = &target->ch[i];
if (ret || !ch->target) {
if (i > 1)
ret = 0;
if (ret || !ch->target)
ret = srp_connect_ch(ch, multich);
multich = true;
Supports Markdown
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