From: Alexander Aring Date: Mon, 1 Mar 2021 17:05:07 -0500 Subject: [Cluster-devel] [PATCHv3 dlm/next 00/13] fs: dlm: lowcomms and midcomms changes Message-ID: <20210301220520.514470-1-aahringo@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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(-) -- 2.26.2