dlm: don't limit active work items
authorDavid Teigland <teigland@redhat.com>
Mon, 18 Jul 2011 20:28:34 +0000 (15:28 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 19 Jul 2011 19:22:32 +0000 (14:22 -0500)
Allow multiple workqueue items (locks with callbacks) to be
processed concurrently.  There should be no reason not to
take advantage of this workqueue feature.

Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/ast.c

index 4f29add0e7d1ef644886232efdfa077f9c6c3543..90e5997262ea77389902b8ea9c97e17ac7384802 100644 (file)
@@ -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;