Commit e43f055a authored by David Teigland's avatar David Teigland

dlm: use alloc_workqueue function

Replaces deprecated create_singlethread_workqueue().
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent e3853a90
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment