diff options
author | David Teigland <teigland@redhat.com> | 2011-03-10 14:22:34 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2011-03-10 14:22:34 -0500 |
commit | e43f055a953721ed1787a039ab5e720755596ea2 (patch) | |
tree | 7f98c4639974cd12343b964fbdd2c440bf2fcaad /fs | |
parent | e3853a90e218bcb2e48d3f403d0962bf54444f5f (diff) |
dlm: use alloc_workqueue function
Replaces deprecated create_singlethread_workqueue().
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/dlm/lowcomms.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c index 2d8c87b951c2..bffa1e73b9a9 100644 --- a/fs/dlm/lowcomms.c +++ b/fs/dlm/lowcomms.c | |||
@@ -1468,13 +1468,15 @@ static void work_stop(void) | |||
1468 | 1468 | ||
1469 | static int work_start(void) | 1469 | static int work_start(void) |
1470 | { | 1470 | { |
1471 | recv_workqueue = create_singlethread_workqueue("dlm_recv"); | 1471 | recv_workqueue = alloc_workqueue("dlm_recv", |
1472 | WQ_UNBOUND | WQ_MEM_RECLAIM, 1); | ||
1472 | if (!recv_workqueue) { | 1473 | if (!recv_workqueue) { |
1473 | log_print("can't start dlm_recv"); | 1474 | log_print("can't start dlm_recv"); |
1474 | return -ENOMEM; | 1475 | return -ENOMEM; |
1475 | } | 1476 | } |
1476 | 1477 | ||
1477 | send_workqueue = create_singlethread_workqueue("dlm_send"); | 1478 | send_workqueue = alloc_workqueue("dlm_send", |
1479 | WQ_UNBOUND | WQ_MEM_RECLAIM, 1); | ||
1478 | if (!send_workqueue) { | 1480 | if (!send_workqueue) { |
1479 | log_print("can't start dlm_send"); | 1481 | log_print("can't start dlm_send"); |
1480 | destroy_workqueue(recv_workqueue); | 1482 | destroy_workqueue(recv_workqueue); |