Skip to content

fs: dlm: introduce dlm re-transmission layer

Alexander Aring cluster-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8fs: dlm: public header in out utilityfs/dlm/util.c fs/dlm/util.h+4 -20 replies
2/8fs: dlm: add more midcomms hooksfs/dlm/config.c fs/dlm/lock.c fs/dlm/lockspace.c +5 more+108 -300 replies
3/8fs: dlm: make buffer handling per msgfs/dlm/lowcomms.c fs/dlm/lowcomms.h fs/dlm/midcomms.c+101 -120 replies
4/8fs: dlm: add functionality to re-transmit a messagefs/dlm/lowcomms.c fs/dlm/lowcomms.h+56 -290 replies
5/8fs: dlm: move out some hash functionalityfs/dlm/lowcomms.c fs/dlm/lowcomms.h+10 -90 replies
6/8fs: dlm: add union in dlm header for lockspace idfs/dlm/dlm_internal.h fs/dlm/lock.c fs/dlm/midcomms.c +2 more+14 -100 replies
7/8fs: dlm: add reliable connection if reconnectfs/dlm/dlm_internal.h fs/dlm/lockspace.c fs/dlm/lowcomms.h +2 more+1269 -551 reply
7/8fs: dlm: add reliable connection if reconnect+0 -00 replies
8/8fs: dlm: don't allow half transmitted messagesfs/dlm/lowcomms.c+54 -300 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Cluster-devel] [PATCH dlm/next 0/8] fs: dlm: introduce dlm re-transmission layer

Hi,

this is the final patch-series to make dlm reliable when re-connection occurs. You can easily generate a couple of re-connections by running:

tcpkill -9 -i $IFACE port 21064

on your own to test these patches. At some time dlm will detect message drops and will re-transmit messages if necessary. It introduces a new dlm protocol behaviour and increases the dlm protocol version. I tested it with SCTP as well and tried to be backwards compatible with dlm protocol version 3.1. However I don't recommend at all to mix these versions in a setup since dlm version 3.2 fixes long-term issues.

- Alex

changes since patch series split:
- fixup "fs: dlm: make new buffer handling softirq ready" into "fs: dlm: add functionality to re-transmit a message"
- change hooks to work with shutdown hook
- use DEFAULT_BUFFER_SIZE for max send/recv buffer, because backwards compatiblility with dlm 3.1
- remove "fs: dlm: add per node receive flush", I think we don't run into issues.
- change comments regarding why DLM_FIN is needed.
- move midcomms_remove_member hook in dlm protocol when removing ls->nodes_gone list, so far I can see it's the last point that the lockspace has this node as a member in some datastructures.
- make deep free of recv/send queue when midcomms_node is freed
- add DLM_NODE_FLAG_STOP_TX flag for midcomms node to warn if a node tries to send at point where dlm application should not starting transmissions anymore. It indicates a bug.
- change some retransmit/timeout timings, I think we need somehow to figure out by waiting e.g. user reports if we getting problems with them.

Alexander Aring (8):
fs: dlm: public header in out utility
fs: dlm: add more midcomms hooks
fs: dlm: make buffer handling per msg
fs: dlm: add functionality to re-transmit a message
fs: dlm: move out some hash functionality
fs: dlm: add union in dlm header for lockspace id
fs: dlm: add reliable connection if reconnect
fs: dlm: don't allow half transmitted messages

 fs/dlm/config.c       |    3 +-
 fs/dlm/dlm_internal.h |   35 +-
 fs/dlm/lock.c         |   14 +-
 fs/dlm/lockspace.c    |   14 +-
 fs/dlm/lowcomms.c     |  197 +++++--
 fs/dlm/lowcomms.h     |   23 +-
 fs/dlm/member.c       |   12 +-
 fs/dlm/midcomms.c     | 1281 ++++++++++++++++++++++++++++++++++++++++-
 fs/dlm/midcomms.h     |   10 +
 fs/dlm/rcom.c         |   63 +-
 fs/dlm/recoverd.c     |    1 +
 fs/dlm/util.c         |   10 +-
 fs/dlm/util.h         |    2 +
 13 files changed, 1552 insertions(+), 113 deletions(-)
Signature · 1 line
2.26.2