diff options
author | Sowmini Varadhan <sowmini.varadhan@oracle.com> | 2016-06-13 12:44:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-15 02:50:44 -0400 |
commit | d769ef81d5b5932520fbefb02614a4380c132495 (patch) | |
tree | af1fedcb8109508425ee90d419d58272676af746 /net/rds/send.c | |
parent | 1c5113cf796bb730abc1798a3649b61e9e022be6 (diff) |
RDS: Update rds_conn_shutdown to work with rds_conn_path
This commit changes rds_conn_shutdown to take a rds_conn_path *
argument, allowing it to shutdown paths other than c_path[0] for
MP-capable transports.
Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/send.c')
-rw-r--r-- | net/rds/send.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/net/rds/send.c b/net/rds/send.c index 369bd6690218..ee43d6b2ea8f 100644 --- a/net/rds/send.c +++ b/net/rds/send.c | |||
@@ -62,7 +62,7 @@ static void rds_send_remove_from_sock(struct list_head *messages, int status); | |||
62 | * Reset the send state. Callers must ensure that this doesn't race with | 62 | * Reset the send state. Callers must ensure that this doesn't race with |
63 | * rds_send_xmit(). | 63 | * rds_send_xmit(). |
64 | */ | 64 | */ |
65 | static void rds_send_path_reset(struct rds_conn_path *cp) | 65 | void rds_send_path_reset(struct rds_conn_path *cp) |
66 | { | 66 | { |
67 | struct rds_message *rm, *tmp; | 67 | struct rds_message *rm, *tmp; |
68 | unsigned long flags; | 68 | unsigned long flags; |
@@ -99,12 +99,7 @@ static void rds_send_path_reset(struct rds_conn_path *cp) | |||
99 | list_splice_init(&cp->cp_retrans, &cp->cp_send_queue); | 99 | list_splice_init(&cp->cp_retrans, &cp->cp_send_queue); |
100 | spin_unlock_irqrestore(&cp->cp_lock, flags); | 100 | spin_unlock_irqrestore(&cp->cp_lock, flags); |
101 | } | 101 | } |
102 | 102 | EXPORT_SYMBOL_GPL(rds_send_path_reset); | |
103 | void rds_send_reset(struct rds_connection *conn) | ||
104 | { | ||
105 | rds_send_path_reset(&conn->c_path[0]); | ||
106 | } | ||
107 | EXPORT_SYMBOL_GPL(rds_send_reset); | ||
108 | 103 | ||
109 | static int acquire_in_xmit(struct rds_conn_path *cp) | 104 | static int acquire_in_xmit(struct rds_conn_path *cp) |
110 | { | 105 | { |