]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
usb: core: hcd: Convert from tasklet to BH workqueue
authorTejun Heo <tj@kernel.org>
Sun, 4 Feb 2024 21:34:34 +0000 (11:34 -1000)
committerTejun Heo <tj@kernel.org>
Mon, 5 Feb 2024 23:22:38 +0000 (13:22 -1000)
commit8fea0c8fda30129b4168464975505d5dc9735ac1
tree3fcd773bb281eb1617bb19ba63d2c05dc8e3ebce
parent7245d24f874d781cf3f1530e6d24e1e0eba4269a
usb: core: hcd: Convert from tasklet to BH workqueue

The only generic interface to execute asynchronously in the BH context is
tasklet; however, it's marked deprecated and has some design flaws. To
replace tasklets, BH workqueue support was recently added. A BH workqueue
behaves similarly to regular workqueues except that the queued work items
are executed in the BH context.

This patch converts usb hcd from tasklet to BH workqueue.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: linux-usb@vger.kernel.org
drivers/usb/core/hcd.c
include/linux/usb/hcd.h