dlm: md: introduce DLM_LSFL_SOFTIRQ_SAFE
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | dlm: using rcu to avoid rsb lookup againfs/ fs/ fs/ | +112 | 0 replies | |
| 2/8 | dlm: remove struct field with the same meaningfs/ fs/ fs/ +5 more | +119 | 1 reply | |
| 3/8 | dlm: use is_master() on checks if we are the masterfs/ fs/ | +5 | 0 replies | |
| 4/8 | dlm: use LSFL_FS to check if it's a kernel lockspacefs/ fs/ fs/ | +19 | 0 replies | |
| 5/8 | dlm: introduce DLM_LSFL_SOFTIRQ_SAFEfs/ include/ include/ | +21 | 0 replies | |
| 6/8 | dlm: implement LSFL_SOFTIRQ_SAFEfs/ fs/ fs/ +2 more | +126 | 0 replies | |
| 7/8 | dlm: convert ls_cb_lock to rwlockfs/ fs/ fs/ | +17 | 0 replies | |
| 8/8 | md-cluster: use DLM_LSFL_SOFTIRQ for dlm_new_lockspace()drivers/ | +1 | 5 replies |
Reviews trailers per patch
1 of 8 patches has a Reviewed-by or Acked-by.
| Patch | Song Liu |
|---|---|
| 1/8 | |
| 2/8 | |
| 3/8 | |
| 4/8 | |
| 5/8 | |
| 6/8 | |
| 7/8 | |
| 8/8 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH dlm/next 0/8] dlm: md: introduce DLM_LSFL_SOFTIRQ_SAFE
Hi,
the first three patches are resend with an updated commit message and additional comment e.g. to explain the rcu_read_lock() handling to avoid a lookup twice.
The main part are the rest of the patches introducing the DLM_LSFL_SOFTIRQ_SAFE flag to signal that ast/bast callbacks can be handled in softirq context. md-cluster is the first user here to take advantage about this flag as their callback handling is simple enough and looks okay to be called from softirq context. To be honest, I also just need a upstream user for the new flag. Other users, e.g. gfs2 can take also advantage of it.
I also gave it a try with a debug kernel and used md-cluster with 2 block devices and level mirrored. I used gfs2 on top of it and it seems to run without any problems.
This patch series is based on:
https://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm.git/log/?h=next
in case of md-cluster people want to try it out.
Thanks.
- Alex
Alexander Aring (8):
dlm: using rcu to avoid rsb lookup again
dlm: remove struct field with the same meaning
dlm: use is_master() on checks if we are the master
dlm: use LSFL_FS to check if it's a kernel lockspace
dlm: introduce DLM_LSFL_SOFTIRQ_SAFE
dlm: implement LSFL_SOFTIRQ_SAFE
dlm: convert ls_cb_lock to rwlock
md-cluster: use DLM_LSFL_SOFTIRQ for dlm_new_lockspace()
drivers/md/md-cluster.c | 2 +- fs/dlm/ast.c | 185 ++++++++++++++++++--------- fs/dlm/ast.h | 11 +- fs/dlm/debug_fs.c | 33 ++--- fs/dlm/dlm_internal.h | 40 +++++- fs/dlm/lock.c | 268 +++++++++++++++++++++++---------------- fs/dlm/lock.h | 5 +- fs/dlm/lockspace.c | 23 ++-- fs/dlm/memory.c | 15 ++- fs/dlm/rcom.c | 4 +- fs/dlm/recover.c | 20 +-- fs/dlm/recoverd.c | 2 +- fs/dlm/user.c | 38 +++--- include/linux/dlm.h | 17 ++- include/uapi/linux/dlm.h | 2 + 15 files changed, 413 insertions(+), 252 deletions(-)
Signature · 1 line
2.43.0