Skip to content

RDS: TCP: sychronization during connection startup

Sowmini Varadhan netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2RDS:TCP: Synchronize rds_tcp_accept_one with rds_send_xmit when resetting t_socknet/rds/tcp.c net/rds/tcp_listen.c+25 -170 replies
2/2RDS: TCP: Synchronize accept() and connect() paths on t_conn_lock.net/rds/tcp.c net/rds/tcp.h net/rds/tcp_connect.c +1 more+33 -100 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchSantosh Shilimkar
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net v2 0/2] RDS: TCP: sychronization during connection startup

This patch series ensures that the passive (accept) side of the TCP connection used for RDS-TCP is correctly synchronized with any concurrent active (connect) attempts for a given pair of peers.

Patch 1 in the series makes sure that the t_sock in struct rds_tcp_connection is only reset after any threads in rds_tcp_xmit have completed (otherwise a null-ptr deref may be encountered). Patch 2 synchronizes rds_tcp_accept_one() with the rds_tcp*connect() path.

v2: review comments from Santosh Shilimkar, other spelling corrections

Sowmini Varadhan (2):
RDS:TCP: Synchronize rds_tcp_accept_one with rds_send_xmit when
resetting t_sock
RDS: TCP: Synchronize accept() and connect() paths on t_conn_lock.

 net/rds/tcp.c         |    3 +-
 net/rds/tcp.h         |    4 +++
 net/rds/tcp_connect.c |    8 +++++++
 net/rds/tcp_listen.c  |   54 ++++++++++++++++++++++++++++++++----------------
 4 files changed, 50 insertions(+), 19 deletions(-)