Skip to content

Commit

Permalink
dlm: use alloc_workqueue function
Browse files Browse the repository at this point in the history
Replaces deprecated create_singlethread_workqueue().

Signed-off-by: David Teigland <teigland@redhat.com>
  • Loading branch information
David Teigland committed Mar 10, 2011
1 parent e3853a9 commit e43f055
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fs/dlm/lowcomms.c
Original file line number Diff line number Diff line change
Expand Up @@ -1468,13 +1468,15 @@ static void work_stop(void)

static int work_start(void)
{
recv_workqueue = create_singlethread_workqueue("dlm_recv");
recv_workqueue = alloc_workqueue("dlm_recv",
WQ_UNBOUND | WQ_MEM_RECLAIM, 1);
if (!recv_workqueue) {
log_print("can't start dlm_recv");
return -ENOMEM;
}

send_workqueue = create_singlethread_workqueue("dlm_send");
send_workqueue = alloc_workqueue("dlm_send",
WQ_UNBOUND | WQ_MEM_RECLAIM, 1);
if (!send_workqueue) {
log_print("can't start dlm_send");
destroy_workqueue(recv_workqueue);
Expand Down

0 comments on commit e43f055

Please sign in to comment.