qlge: Replace create_singlethread_workqueue with alloc_ordered_workqueue
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Sat, 9 Apr 2016 11:57:45 +0000 (17:27 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2016 20:42:10 +0000 (16:42 -0400)
commitac18dd9e842294377dbaf1e8d169493567a81fa1
tree2ac003d8304666245240aee26ef887656be3a491
parent0818556cd0afe4104139eb094f4112f9781c0f7e
qlge: Replace create_singlethread_workqueue with alloc_ordered_workqueue

Replace deprecated create_singlethread_workqueue with
alloc_ordered_workqueue.

Work items include getting tx/rx frame sizes, resetting MPI processor,
setting asic recovery bit so ordering seems necessary as only one work
item should be in queue/executing at any given time, hence the use of
alloc_ordered_workqueue.

WQ_MEM_RECLAIM flag has been set since ethernet devices seem to sit in
memory reclaim path, so to guarantee forward progress regardless of
memory pressure.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlge/qlge_main.c