Commit 98b4e513 authored by Olga Kornievskaia's avatar Olga Kornievskaia Committed by Anna Schumaker

SUNRPC: fix _xprt_switch_find_current_entry logic

Fix the logic for picking current transport entry.

Fixes: 95d0d30c ("SUNRPC create an iterator to list only OFFLINE xprts")
Signed-off-by: default avatarOlga Kornievskaia <kolga@netapp.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 037e56a2
......@@ -284,7 +284,7 @@ struct rpc_xprt *_xprt_switch_find_current_entry(struct list_head *head,
if (cur == pos)
found = true;
if (found && ((find_active && xprt_is_active(pos)) ||
(!find_active && xprt_is_active(pos))))
(!find_active && !xprt_is_active(pos))))
return pos;
}
return NULL;
......
Markdown is supported
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