aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2024-06-03 17:55:58 -0400
committerDavid Teigland <teigland@redhat.com>2024-06-11 13:30:37 -0500
commit5ce02000eb29db98dc2909b1a346f68acdd9db80 (patch)
treebb15775577519897f2c70a99b70c81255c6ebd2a
parentdlm: implement LSFL_SOFTIRQ_SAFE (diff)
downloadwireguard-linux-5ce02000eb29db98dc2909b1a346f68acdd9db80.tar.xz
wireguard-linux-5ce02000eb29db98dc2909b1a346f68acdd9db80.zip
md-cluster: use DLM_LSFL_SOFTIRQ for dlm_new_lockspace()
Use the recently added DLM_LSFL_SOFTIRQ flag in dlm_new_lockspace(), signalling the ability to handle callbacks being run from softirq context. The md-cluster callback functions only call complete(), which is suitable for softirq. This should make dlm lock request completions more efficient by avoiding the workqueue context switch. Acked-by: Heming Zhao <heming.zhao@suse.com> Acked-by: Song Liu <song@kernel.org> Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/md/md-cluster.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c
index 8e36a0feec09..eb9bbf12c8d8 100644
--- a/drivers/md/md-cluster.c
+++ b/drivers/md/md-cluster.c
@@ -887,7 +887,7 @@ static int join(struct mddev *mddev, int nodes)
memset(str, 0, 64);
sprintf(str, "%pU", mddev->uuid);
ret = dlm_new_lockspace(str, mddev->bitmap_info.cluster_name,
- 0, LVB_SIZE, &md_ls_ops, mddev,
+ DLM_LSFL_SOFTIRQ, LVB_SIZE, &md_ls_ops, mddev,
&ops_rv, &cinfo->lockspace);
if (ret)
goto err;