staging: most: hdm-usb: Remove create_workqueue()
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Sat, 20 Feb 2016 09:45:38 +0000 (15:15 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 23:02:06 +0000 (15:02 -0800)
commite3479f774e10b1fe9cd1d8aa730c5332812c4ba0
tree803adb2d8083f7cf0a3c0e49a42cd7b0754bb7ab
parenta642bbbb4138568cd85217a328c899a5203b4d20
staging: most: hdm-usb: Remove create_workqueue()

With concurrency managed workqueues, use of dedicated workqueues can
be replaced by using system_wq. Drop schedule_usb_work by using
system_wq.

Since there is only one work item per buf_anchor and most_dev and they
do not need to be ordered, increase of concurrency by switching to
system_wq should not break anything.

Both work items are sync canceled before the driver can be
unregistered, to ensure no work item is pending or executing on any
CPU by the time exit path is in flight.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/hdm-usb/hdm_usb.c