Skip to content

fs: dlm: cleanup plock code

Alexander Aring cluster-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 0 repliesNew
  2. v14 patches 0 repliesSuperseded

changes since v2 from the cover letter

- explain more "fs: dlm: replace sanity checks with WARN_ON"
- add "fs: dlm: remove unnecessary INIT_LIST_HEAD()"
- add "fs: dlm: move global to static inits"

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6fs: dlm: replace sanity checks with WARN_ONfs/dlm/plock.c+4 -280 replies
2/6fs: dlm: cleanup plock_op vs plock_xopfs/dlm/plock.c+46 -310 replies
3/6fs: dlm: rearrange async condition returnfs/dlm/plock.c+13 -140 replies
4/6fs: dlm: improve plock logging if interruptedfs/dlm/plock.c+5 -40 replies
5/6fs: dlm: remove unnecessary INIT_LIST_HEAD()fs/dlm/plock.c+0 -10 replies
6/6fs: dlm: move global to static initsfs/dlm/plock.c+5 -110 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [Cluster-devel] [PATCHv2 dlm/next 0/6] fs: dlm: cleanup plock code

Hi,

this patch-series cleanups some plock code handling and remove the plock_op vs plock_xop casting which had made trouble in the past. Also I add the logging improvment handling to see when a plock op was not being found, the wait was interrupted before.

This followed up cleanup patch series should be applied on top of the previous stable patch "[PATCH dlm/next] fs: dlm: fix plock invalid read".

Thanks.

- Alex

changes since v2:
- explain more "fs: dlm: replace sanity checks with WARN_ON"
- add "fs: dlm: remove unnecessary INIT_LIST_HEAD()"
- add "fs: dlm: move global to static inits"

Alexander Aring (6):
fs: dlm: replace sanity checks with WARN_ON
fs: dlm: cleanup plock_op vs plock_xop
fs: dlm: rearrange async condition return
fs: dlm: improve plock logging if interrupted
fs: dlm: remove unnecessary INIT_LIST_HEAD()
fs: dlm: move global to static inits

 fs/dlm/plock.c | 154 ++++++++++++++++++++++---------------------------
 1 file changed, 69 insertions(+), 85 deletions(-)
Signature · 1 line
2.31.1