Skip to contentSkip to conversation

dlm: don't limit active work items

PATCH New David Teigland 1 participant 1 message Jul 21, 2011 Distributed lock manager (DLM)

lore
Share & tools
lore

David Teigland

author maintainer
#0 lore raw

PATCH 10/10 dlm: don't limit active work items

Allow multiple workqueue items (locks with callbacks) to be processed concurrently. There should be no reason not to take advantage of this workqueue feature.

---
 fs/dlm/ast.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
fs/dlm/ast.c +4 -1
index 4f29add..90e5997 100644
@@ -267,7 +267,10 @@ void dlm_callback_work(struct work_struct *work)
 int dlm_callback_start(struct dlm_ls *ls)
 {
 	ls->ls_callback_wq = alloc_workqueue("dlm_callback",
-					     WQ_UNBOUND | WQ_MEM_RECLAIM, 1);
+					     WQ_UNBOUND |
+					     WQ_MEM_RECLAIM |
+					     WQ_NON_REENTRANT,
+					     0);
 	if (!ls->ls_callback_wq) {
 		log_print("can't start dlm_callback workqueue");
 		return -ENOMEM;
Signature · 1 line
1.7.6