Skip to content

Commit 273d6ae

Browse files
Olga KornievskaiaTrond Myklebust
authored andcommitted
SUNRPC export xprt_iter_rewind function
Make xprt_iter_rewind callable outside of xprtmultipath.c Signed-off-by: Olga Kornievskaia <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
1 parent 7960aa9 commit 273d6ae

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/linux/sunrpc/xprtmultipath.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ extern void xprt_iter_init_listoffline(struct rpc_xprt_iter *xpi,
6868

6969
extern void xprt_iter_destroy(struct rpc_xprt_iter *xpi);
7070

71+
extern void xprt_iter_rewind(struct rpc_xprt_iter *xpi);
72+
7173
extern struct rpc_xprt_switch *xprt_iter_xchg_switch(
7274
struct rpc_xprt_iter *xpi,
7375
struct rpc_xprt_switch *newswitch);

net/sunrpc/xprtmultipath.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,6 @@ struct rpc_xprt *xprt_iter_next_entry_offline(struct rpc_xprt_iter *xpi)
481481
* Resets xpi to ensure that it points to the first entry in the list
482482
* of transports.
483483
*/
484-
static
485484
void xprt_iter_rewind(struct rpc_xprt_iter *xpi)
486485
{
487486
rcu_read_lock();

0 commit comments

Comments
 (0)