fs: dlm: lowcomms and midcomms changes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest13 patches 0 repliesNew
- v212 patches 0 repliesSuperseded
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | fs: dlm: fix debugfs dumpfs/ | +1 | 0 replies | |
| 2/13 | fs: dlm: fix mark setting deadlockfs/ fs/ fs/ +1 more | +45 | 0 replies | |
| 3/13 | fs: dlm: set connected bit after acceptfs/ | +1 | 0 replies | |
| 4/13 | fs: dlm: set subclass for othercon sock_mutexfs/ | +2 | 0 replies | |
| 5/13 | fs: dlm: add errno handling to check callbackfs/ | +16 | 0 replies | |
| 6/13 | fs: dlm: add check if dlm is currently runningfs/ fs/ fs/ | +36 | 0 replies | |
| 7/13 | fs: dlm: change allocation limitsfs/ | +4 | 0 replies | |
| 8/13 | fs: dlm: use GFP_ZERO for page bufferfs/ fs/ fs/ | +1 | 0 replies | |
| 9/13 | fs: dlm: simplify writequeue handlingfs/ | +43 | 0 replies | |
| 10/13 | fs: dlm: check on minimum msglen sizefs/ | +4 | 0 replies | |
| 11/13 | fs: dlm: remove unaligned memory access handlingfs/ | +12 | 0 replies | |
| 12/13 | fs: dlm: flush swork on shutdownfs/ | +1 | 0 replies | |
| 13/13 | fs: dlm: add shutdown hookfs/ fs/ fs/ | +35 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
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