summaryrefslogtreecommitdiffstats
path: root/net/rds/send.c
diff options
context:
space:
mode:
authorSowmini Varadhan <sowmini.varadhan@oracle.com>2016-06-04 13:59:59 -0700
committerDavid S. Miller <davem@davemloft.net>2016-06-07 15:10:15 -0700
commit0b6f760cff04a7cdfafc3ec6915e91fed0533d8d (patch)
tree4906aec845e45e335b0ed779e0e208b341cdd4da /net/rds/send.c
parent335b48d980f631fbc5b233cbb3625ac0c86d67cb (diff)
downloadlinux-0-day-0b6f760cff04a7cdfafc3ec6915e91fed0533d8d.tar.gz
linux-0-day-0b6f760cff04a7cdfafc3ec6915e91fed0533d8d.tar.xz
RDS: TCP: Retransmit half-sent datagrams when switching sockets in rds_tcp_reset_callbacks
When we switch a connection's sockets in rds_tcp_rest_callbacks, any partially sent datagram must be retransmitted on the new socket so that the receiver can correctly reassmble the RDS datagram. Use rds_send_reset() which is designed for this purpose. Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/send.c')
-rw-r--r--net/rds/send.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rds/send.c b/net/rds/send.c
index c9cdb358ea885..b1962f8e30f7b 100644
--- a/net/rds/send.c
+++ b/net/rds/send.c
@@ -99,6 +99,7 @@ void rds_send_reset(struct rds_connection *conn)
list_splice_init(&conn->c_retrans, &conn->c_send_queue);
spin_unlock_irqrestore(&conn->c_lock, flags);
}
+EXPORT_SYMBOL_GPL(rds_send_reset);
static int acquire_in_xmit(struct rds_connection *conn)
{