Skip to content

Commit 98b4e51

Browse files
olgakorn1amschuma-ntap
authored andcommitted
SUNRPC: fix _xprt_switch_find_current_entry logic
Fix the logic for picking current transport entry. Fixes: 95d0d30 ("SUNRPC create an iterator to list only OFFLINE xprts") Signed-off-by: Olga Kornievskaia <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent 037e56a commit 98b4e51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sunrpc/xprtmultipath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ struct rpc_xprt *_xprt_switch_find_current_entry(struct list_head *head,
284284
if (cur == pos)
285285
found = true;
286286
if (found && ((find_active && xprt_is_active(pos)) ||
287-
(!find_active && xprt_is_active(pos))))
287+
(!find_active && !xprt_is_active(pos))))
288288
return pos;
289289
}
290290
return NULL;

0 commit comments

Comments
 (0)