]> git.baikalelectronics.ru Git - kernel.git/commit
staging/wlan-ng, prism2usb: replace completion_bh tasklet with work
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 11 Apr 2022 15:16:17 +0000 (08:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2022 13:53:50 +0000 (15:53 +0200)
commit9daa93826271c6c50f3b48371d8bbeb9f46ba30d
tree3939d751b4039a4926d80315b5310104cb90b9f3
parent31d4e2164b4705f76ded336fce6c31bc50b3ba0e
staging/wlan-ng, prism2usb: replace completion_bh tasklet with work

Tasklets have long been deprecated as being too heavy on the system
by running in irq context - and this is not a performance critical
path. If a higher priority process wants to run, it must wait for
the tasklet to finish before doing so.

The completion_bh tasklet will now run in process context and have
further concurrency (tasklets being serialized among themselves),
but this is done holding the ctlxq.lock, so it should be fine.

Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Link: https://lore.kernel.org/r/20220411151620.129178-4-dave@stgolabs.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/hfa384x.h
drivers/staging/wlan-ng/hfa384x_usb.c
drivers/staging/wlan-ng/prism2usb.c