Lines Matching refs:path
415 /* This should be IO path, so always notify */
759 * get_next_path_rr() - Returns path in round-robin fashion.
760 * @it: the path pointer
770 struct rtrs_clt_sess *path;
782 path = rcu_dereference(*ppcpu_path);
783 if (unlikely(!path))
784 path = list_first_or_null_rcu(&clt->paths_list,
785 typeof(*path), s.entry);
787 path = list_next_or_null_rr_rcu(&clt->paths_list,
788 &path->s.entry,
789 typeof(*path),
791 rcu_assign_pointer(*ppcpu_path, path);
793 return path;
797 * get_next_path_min_inflight() - Returns path with minimal inflight count.
798 * @it: the path pointer
829 * add the path to the skip list, so that next time we can get
1166 * rtrs_clt_failover_req() Try to find an active path for a failed request
1194 /* Success path */
1220 * be failovered to another path.
1417 const struct rtrs_addr *path,
1442 memcpy(&sess->s.dst_addr, path->dst,
1443 rdma_addr_size((struct sockaddr *)path->dst));
1450 if (path->src)
1451 memcpy(&sess->s.src_addr, path->src,
1452 rdma_addr_size((struct sockaddr *)path->src));
1535 * event path, thus caller/waiter never knows: have we failed before
1777 /* set for_new_clt, to allow future reconnect on any path */
2107 /* Make sure everybody observes path removal. */
2113 * nobody can observe @sess in the list, we guarantee that IO path
2121 * path and only then decremented paths number.
2125 * o One path is removed:
2128 * path = get_next_path()
2129 * ^^^ list_del_rcu(path)
2130 * [!CONNECTED path] clt->paths_num--
2136 * path is observed as !CONNECTED, but do_each_path() loop
2151 * @pcpu paths can still point to the path which is going to be
2162 * entry from the list, thus IO code path cannot
2169 * We race with IO code path, which also changes pointer,
2252 * If we've never taken async path and got an error, say,
2463 /* If we've never taken async path because of malloc problems */
2801 * Continue stopping path till state was changed to DEAD or
2807 * removing the path.
2910 /* Success path */
2954 * It is totally safe to add path in CONNECTING state: coming
2956 * path before init, since init fires LINK_CONNECTED event.