Skip to content

Commit 5ce0200

Browse files
Alexander Aringteigland
authored andcommitted
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 <[email protected]> Acked-by: Song Liu <[email protected]> Signed-off-by: Alexander Aring <[email protected]> Signed-off-by: David Teigland <[email protected]>
1 parent 68bde2a commit 5ce0200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/md-cluster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ static int join(struct mddev *mddev, int nodes)
887887
memset(str, 0, 64);
888888
sprintf(str, "%pU", mddev->uuid);
889889
ret = dlm_new_lockspace(str, mddev->bitmap_info.cluster_name,
890-
0, LVB_SIZE, &md_ls_ops, mddev,
890+
DLM_LSFL_SOFTIRQ, LVB_SIZE, &md_ls_ops, mddev,
891891
&ops_rv, &cinfo->lockspace);
892892
if (ret)
893893
goto err;

0 commit comments

Comments
 (0)