Skip to contentSkip to conversation

dlm: use alloc_workqueue function

PATCH New David Teigland 1 participant 1 message Mar 16, 2011 Distributed lock manager (DLM)

lore
Share & tools
lore

David Teigland

author maintainer
#0 lore raw

PATCH 3/3 dlm: use alloc_workqueue function

Replaces deprecated create_singlethread_workqueue().

---
 fs/dlm/lowcomms.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
fs/dlm/lowcomms.c +4 -2
index 2d8c87b..bffa1e7 100644
@@ -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);
Signature · 1 line
1.7.1.1