Skip to content

fs: dlm: change lock and endianness handling

Alexander Aring cluster-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9fs: dlm: add __CHECKER__ for false positivesfs/dlm/lowcomms.c fs/dlm/midcomms.c+20 -00 replies
2/9fs: dlm: use __le types for options headerfs/dlm/dlm_internal.h+5 -50 replies
3/9fs: dlm: use __le types for dlm headerfs/dlm/dir.c fs/dlm/dlm_internal.h fs/dlm/lock.c +6 more+98 -1160 replies
4/9fs: dlm: use __le types for rcom messagesfs/dlm/dlm_internal.h fs/dlm/lock.c fs/dlm/member.c +4 more+52 -800 replies
5/9fs: dlm: use __le types for dlm messagesfs/dlm/dlm_internal.h fs/dlm/lock.c fs/dlm/requestqueue.c +2 more+174 -2050 replies
6/9fs: dlm: move conversion to compile timefs/dlm/midcomms.c+10 -100 replies
7/9fs: dlm: remove __user conversion warningsfs/dlm/user.c+8 -80 replies
8/9fs: dlm: remove found label in dlm_master_lookupfs/dlm/lock.c+9 -90 replies
9/9fs: dlm: cleanup lock handling in dlm_master_lookupfs/dlm/lock.c+102 -870 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Cluster-devel] [PATCH/RFC dlm/next 0/9] fs: dlm: change lock and endianness handling

Hi,

this patch series removes all sparse warnings which are occur when calling:

make C=2 fs/dlm/*.o

This patch series will not fix anything, but changes e.g. the endianness handling in dlm so we probably can find issues in future if dlm wire message value is compared against a host byte order value.

Otherwise there are some changes regarding casting or move functions around to make sparse quiet that it does not complain about those sections which are in my opinion false positives or at least handle it in such way right now to find a better solution in future.

I hope I caught all necessary endianness conversions (sparse does not complain if a format string and a value is handled as non host byte order for printout, but I tried to caught them all). There might be some better options to handle e.g. lkb types directly in little endian as it is dlm wire byte order. However this patch series will at first remove the in/out functionality for byte order conversion. There might be in future more follow up patches to change the byte order conversion in dlm application stack.

- Alex

Alexander Aring (9):
fs: dlm: add __CHECKER__ for false positives
fs: dlm: use __le types for options header
fs: dlm: use __le types for dlm header
fs: dlm: use __le types for rcom messages
fs: dlm: use __le types for dlm messages
fs: dlm: move conversion to compile time
fs: dlm: remove __user conversion warnings
fs: dlm: remove found label in dlm_master_lookup
fs: dlm: cleanup lock handling in dlm_master_lookup

 fs/dlm/dir.c          |   2 +-
 fs/dlm/dlm_internal.h |  66 ++---
 fs/dlm/lock.c         | 545 ++++++++++++++++++++++--------------------
 fs/dlm/lowcomms.c     |  10 +
 fs/dlm/member.c       |  11 +-
 fs/dlm/midcomms.c     |  58 +++--
 fs/dlm/rcom.c         | 120 +++++-----
 fs/dlm/recover.c      |  10 +-
 fs/dlm/requestqueue.c |  20 +-
 fs/dlm/user.c         |  16 +-
 fs/dlm/util.c         |  92 +------
 fs/dlm/util.h         |   8 +-
 12 files changed, 458 insertions(+), 500 deletions(-)
Signature · 1 line
2.31.1