diff options
author | Olga Kornievskaia <kolga@netapp.com> | 2023-12-01 20:42:03 +0100 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2024-01-04 16:47:56 +0100 |
commit | 98b4e5137504a5bd9346562b1310cdc13486603b (patch) | |
tree | 8119814fa6a48026674e7cf9ab159045a38a1b1c /net/sunrpc | |
parent | NFSv4.1/pnfs: Ensure we handle the error NFS4ERR_RETURNCONFLICT (diff) | |
download | linux-98b4e5137504a5bd9346562b1310cdc13486603b.tar.xz linux-98b4e5137504a5bd9346562b1310cdc13486603b.zip |
SUNRPC: fix _xprt_switch_find_current_entry logic
Fix the logic for picking current transport entry.
Fixes: 95d0d30c66b8 ("SUNRPC create an iterator to list only OFFLINE xprts")
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/xprtmultipath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprtmultipath.c b/net/sunrpc/xprtmultipath.c index 0706575d9392..720d3ba742ec 100644 --- a/net/sunrpc/xprtmultipath.c +++ b/net/sunrpc/xprtmultipath.c @@ -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; |