Skip to content

Commit 6c6a1cc

Browse files
Alexander Aringteigland
authored andcommitted
fs: dlm: use alloc_ordered_workqueue
The proper way to allocate ordered workqueues is to use alloc_ordered_workqueue() function. The current way implies an ordered workqueue which is also required by dlm. Signed-off-by: Alexander Aring <[email protected]> Signed-off-by: David Teigland <[email protected]>
1 parent 700ab1c commit 6c6a1cc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

fs/dlm/lowcomms.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,15 +1816,13 @@ static void work_stop(void)
18161816

18171817
static int work_start(void)
18181818
{
1819-
recv_workqueue = alloc_workqueue("dlm_recv",
1820-
WQ_UNBOUND | WQ_MEM_RECLAIM, 1);
1819+
recv_workqueue = alloc_ordered_workqueue("dlm_recv", WQ_MEM_RECLAIM);
18211820
if (!recv_workqueue) {
18221821
log_print("can't start dlm_recv");
18231822
return -ENOMEM;
18241823
}
18251824

1826-
send_workqueue = alloc_workqueue("dlm_send",
1827-
WQ_UNBOUND | WQ_MEM_RECLAIM, 1);
1825+
send_workqueue = alloc_ordered_workqueue("dlm_send", WQ_MEM_RECLAIM);
18281826
if (!send_workqueue) {
18291827
log_print("can't start dlm_send");
18301828
destroy_workqueue(recv_workqueue);

0 commit comments

Comments
 (0)