Skip to content

fs: dlm: lowcomms and midcomms changes

Alexander Aring cluster-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest13 patches 0 repliesNew
  2. v212 patches 0 repliesSuperseded
  3. v19 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- fix length check in dlm processing loop
- add "fs: dlm: fix debugfs dump" patch
- add "fs: dlm: flush swork on shutdown" patch
- add "fs: dlm: add shutdown hook"

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13fs: dlm: fix debugfs dumpfs/dlm/debug_fs.c+1 -00 replies
2/13fs: dlm: fix mark setting deadlockfs/dlm/config.c fs/dlm/config.h fs/dlm/lowcomms.c +1 more+45 -350 replies
3/13fs: dlm: set connected bit after acceptfs/dlm/lowcomms.c+1 -00 replies
4/13fs: dlm: set subclass for othercon sock_mutexfs/dlm/lowcomms.c+2 -10 replies
5/13fs: dlm: add errno handling to check callbackfs/dlm/config.c+16 -70 replies
6/13fs: dlm: add check if dlm is currently runningfs/dlm/config.c fs/dlm/lowcomms.c fs/dlm/lowcomms.h+36 -30 replies
7/13fs: dlm: change allocation limitsfs/dlm/lowcomms.c+4 -20 replies
8/13fs: dlm: use GFP_ZERO for page bufferfs/dlm/lock.c fs/dlm/lowcomms.c fs/dlm/rcom.c+1 -50 replies
9/13fs: dlm: simplify writequeue handlingfs/dlm/lowcomms.c+43 -400 replies
10/13fs: dlm: check on minimum msglen sizefs/dlm/midcomms.c+4 -30 replies
11/13fs: dlm: remove unaligned memory access handlingfs/dlm/midcomms.c+12 -140 replies
12/13fs: dlm: flush swork on shutdownfs/dlm/lowcomms.c+1 -40 replies
13/13fs: dlm: add shutdown hookfs/dlm/lockspace.c fs/dlm/lowcomms.c fs/dlm/lowcomms.h+35 -280 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [Cluster-devel] [PATCHv3 dlm/next 00/13] fs: dlm: lowcomms and midcomms changes

Hi,

this patch series contains some of the patches of the previous patch series to fix dlm message drops if reconnects occurs. These patches have less to do something to introduce the reliable midcomms layer so I split it off the patch series to have them at first upstream which makes the new feature easier to review.

However I did some changes:

- fix "fs: dlm: remove unaligned memory access handling" to use the correct pointer.
- add WARN_ON(1) in "fs: dlm: change allocation limits" to see where an illegal allocation size was coming from.
- add patch "fs: dlm: check on dlm header size" from changes of "fs: dlm: remove unaligned memory access handling"

- Alex

changes since v3:

- rebased on v5.12-rc1
- add "fs: dlm: fix mark setting deadlock"
- stop scand thread before calling shutdown hook
- fix calling shutdown hook in error case of
new lockspace allocation

changes since v2:
- fix length check in dlm processing loop
- add "fs: dlm: fix debugfs dump" patch
- add "fs: dlm: flush swork on shutdown" patch
- add "fs: dlm: add shutdown hook"

About the shutdown hook:

The lowcomms layer will synchronize workqueue at "stop" hook and we already released the lockspace. I introduce the shutdown callback to synchronize the workqueue/tcp before releasing the lockspace but after stopping the recoverd thread. I hope at this point we don't transmit anymore (calling dlm_lowcomms_commit_buffer()) from dlm application layer and we are still capable to deliver dlm messages from lowcomms to application. However the current code definitely has some issues there which I expirence with tcpkill and reliable connection patches. I need to recheck if DLM_FIN is really necessary.

Alexander Aring (13):
fs: dlm: fix debugfs dump
fs: dlm: fix mark setting deadlock
fs: dlm: set connected bit after accept
fs: dlm: set subclass for othercon sock_mutex
fs: dlm: add errno handling to check callback
fs: dlm: add check if dlm is currently running
fs: dlm: change allocation limits
fs: dlm: use GFP_ZERO for page buffer
fs: dlm: simplify writequeue handling
fs: dlm: check on minimum msglen size
fs: dlm: remove unaligned memory access handling
fs: dlm: flush swork on shutdown
fs: dlm: add shutdown hook

 fs/dlm/config.c    |  86 +++++++++++++-------
 fs/dlm/config.h    |   1 -
 fs/dlm/debug_fs.c  |   1 +
 fs/dlm/lock.c      |   2 -
 fs/dlm/lockspace.c |  20 ++---
 fs/dlm/lowcomms.c  | 193 ++++++++++++++++++++++++++-------------------
 fs/dlm/lowcomms.h  |   5 ++
 fs/dlm/midcomms.c  |  33 ++++----
 fs/dlm/rcom.c      |   2 -
 9 files changed, 201 insertions(+), 142 deletions(-)
Signature · 1 line
2.26.2