Skip to content

RFC dlm: fix race between callback and remove message

Alexander Aring gfs2 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7dlm: fix user space lock decision to copy lvbfs/dlm/ast.c fs/dlm/dlm_internal.h fs/dlm/user.c+20 -141 reply
2/7dlm: remove lkb from ast bast tracepointsfs/dlm/ast.c fs/dlm/user.c include/trace/events/dlm.h+33 -310 replies
3/7dlm: remove callback queue debugfs functionalityfs/dlm/debug_fs.c+0 -960 replies
4/7dlm: move lkb debug information out of callbackfs/dlm/ast.c+6 -40 replies
5/7dlm: combine switch case fail and default statementsfs/dlm/ast.c fs/dlm/user.c+6 -80 replies
6/7dlm: fix race between final callback and removefs/dlm/ast.c fs/dlm/ast.h fs/dlm/dlm_internal.h +2 more+128 -2102 replies
7/7dlm: remove callback reference countingfs/dlm/ast.c fs/dlm/ast.h fs/dlm/debug_fs.c +4 more+25 -521 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC v6.8-rc6 0/7] dlm: fix race between callback and remove message

Hi,

this patch fixes some race I hit between the last callback from a lkb and a potential remove message if this callback was not delivered yet. The issue has something todo that we held in some situation the lkb reference which we should not. There are also some other places affected (e.g. debugfs dump) that I am also working on to solve them. I tried to split my work in several patches to reduce the amount of changes in the fix of patch "dlm: fix race between final callback and remove".

I also found a issue with the lvb copy for user space locks I introduced that should be fixed, see "dlm: fix user space lock decision to copy lvb".

- Alex

Alexander Aring (7):
dlm: fix user space lock decision to copy lvb
dlm: remove lkb from ast bast tracepoints
dlm: remove callback queue debugfs functionality
dlm: move lkb debug information out of callback
dlm: combine switch case fail and default statements
dlm: fix race between final callback and remove
dlm: remove callback reference counting

 fs/dlm/ast.c               | 203 +++++++++++++++----------------------
 fs/dlm/ast.h               |  13 +--
 fs/dlm/debug_fs.c          |  98 +-----------------
 fs/dlm/dlm_internal.h      |  66 +++++++-----
 fs/dlm/lock.c              |  24 ++---
 fs/dlm/memory.c            |   4 -
 fs/dlm/user.c              | 107 +++++--------------
 include/trace/events/dlm.h |  46 ++++-----
 8 files changed, 182 insertions(+), 379 deletions(-)
Signature · 1 line
2.43.0