Skip to content

RFC net/rds: RDS-TCP bug fix collection

Allison Henderson netdev oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest15 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15net/rds: Add per cp work queuenet/rds/connection.c net/rds/ib_recv.c net/rds/ib_send.c +5 more+20 -180 replies
2/15net/rds: Give each connection its own workqueuenet/rds/connection.c net/rds/ib.c net/rds/rds.h +1 more+18 -10 replies
3/15net/rds: Change return code from rds_send_xmit() when lock is takennet/rds/send.c+2 -20 replies
4/15net/rds: No shortcut out of RDS_CONN_ERRORnet/rds/connection.c net/rds/tcp_listen.c+2 -50 replies
5/15net/rds: rds_tcp_accept_one ought to not discard messagesnet/rds/connection.c net/rds/rds.h net/rds/recv.c +3 more+168 -760 replies
6/15net/rds: new extension header: rdma bytesnet/rds/ib_send.c net/rds/message.c net/rds/rds.h +1 more+91 -230 replies
7/15net/rds: Encode cp_index in TCP source portnet/rds/message.c net/rds/rds.h net/rds/recv.c +4 more+76 -70 replies
8/15net/rds: rds_tcp_conn_path_shutdown must not discard messagesnet/rds/tcp.c net/rds/tcp.h net/rds/tcp_connect.c +3 more+69 -20 replies
9/15net/rds: Kick-start TCP receiver after acceptnet/rds/tcp_listen.c+2 -00 replies
10/15net/rds: Clear reconnect pending bitnet/rds/connection.c+2 -00 replies
11/15net/rds: Use the first lane until RDS_EXTHDR_NPATHS arrivesnet/rds/rds.h net/rds/recv.c net/rds/send.c +1 more+79 -390 replies
12/15net/rds: Trigger rds_send_ping() more than oncenet/rds/connection.c net/rds/rds.h net/rds/recv.c +3 more+71 -170 replies
13/15net/rds: Delegate fan-out to a background workernet/rds/tcp.c net/rds/tcp.h net/rds/tcp_connect.c +1 more+47 -210 replies
14/15net/rds: Use proper peer port number even when not connectednet/rds/tcp_listen.c+5 -10 replies
15/15net/rds: rds_sendmsg should not discard payload_lennet/rds/send.c+4 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 00/15] net/rds: RDS-TCP bug fix collection

From: Allison Henderson <[email protected]>

Hi all,

This set is a collection of bug-fixes we've been working on for RDS.

This series was last seen in April, but further testing turned up additional bugs that we thought best to address as part of the same effort. So the series has grown a bit, and I’ve restarted versioning since the set sent last spring. Many of the April patches are retained here though.

To refresh: under stress testing, RDS has shown dropped or out-of-sequence message issues. These patches address those problems, together with a bit of work queue refactoring.

Since the April posting, patches 2, 3, 6 and 10–16 are new. To ease reviewing, I was thinking we could split the set into smaller logical subsets. Maybe something like this:

Workqueue scalability (subset 1)
net/rds: Add per cp work queue
net/rds: Give each connection its own workqueue

Bug fixes (subset 2)
net/rds: Change return code from rds_send_xmit() when lock is taken net/rds: No shortcut out of RDS_CONN_ERROR
net/rds: rds_tcp_accept_one ought to not discard messages

Protocol/extension fixes (subset 3)
net/rds: new extension header: rdma bytes
net/rds: Encode cp_index in TCP source port net/rds: rds_tcp_conn_path_shutdown must not discard messages net/rds: Kick-start TCP receiver after accept net/rds: Clear reconnect pending bit
net/rds: Use the first lane until RDS_EXTHDR_NPATHS arrives net/rds: Trigger rds_send_hs_ping() more than once

Send path and fan-out fixes (subset 4)
net/rds: Delegate fan-out to a background worker net/rds: Use proper peer port number even when not connected net/rds: rds_sendmsg should not discard payload_len

If this breakdown seems useful, we can start with just the first set and I'll keep with a branch with the full set available for those who want to look ahead. Otherwise I’ll keep the full set together. Let me know what would be most helpful.

Questions, comments, flames appreciated!
Thanks,
Allison

Allison Henderson (2):
net/rds: Add per cp work queue
net/rds: rds_sendmsg should not discard payload_len

Gerd Rausch (8):
net/rds: No shortcut out of RDS_CONN_ERROR
net/rds: rds_tcp_accept_one ought to not discard messages net/rds: Encode cp_index in TCP source port net/rds: rds_tcp_conn_path_shutdown must not discard messages net/rds: Kick-start TCP receiver after accept net/rds: Use the first lane until RDS_EXTHDR_NPATHS arrives net/rds: Trigger rds_send_ping() more than once net/rds: Delegate fan-out to a background worker

Greg Jumper (1):
net/rds: Use proper peer port number even when not connected

Håkon Bugge (3):
net/rds: Give each connection its own workqueue
net/rds: Change return code from rds_send_xmit() when lock is taken net/rds: Clear reconnect pending bit

Shamir Rabinovitch (1):
net/rds: new extension header: rdma bytes

 net/rds/connection.c  |  25 ++++-
 net/rds/ib.c          |   5 +
 net/rds/ib_recv.c     |   2 +-
 net/rds/ib_send.c     |  21 +++-
 net/rds/message.c     |  66 +++++++++---
 net/rds/rds.h         |  97 +++++++++++------
 net/rds/recv.c        |  39 ++++++-
 net/rds/send.c        | 136 +++++++++++++++---------
 net/rds/stats.c       |   1 +
 net/rds/tcp.c         |  31 +++---
 net/rds/tcp.h         |  34 ++++--
 net/rds/tcp_connect.c |  70 +++++++++++-
 net/rds/tcp_listen.c  | 240 +++++++++++++++++++++++++++++++++++-------
 net/rds/tcp_recv.c    |   6 +-
 net/rds/tcp_send.c    |   4 +-
 net/rds/threads.c     |  17 +--
 16 files changed, 618 insertions(+), 176 deletions(-)
Signature · 1 line
2.43.0