summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2023-09-11 16:05:30 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-10-02 13:58:35 +0200
commitbb00788bd62778ef80a97d67a0e3c569ac6be06f (patch)
treeea1da00afbef4b2834d19bcd6f85fcc594c77da2 /include
parent52a39f2cf62bb5430ad1f54cd522dbfdab1d71ba (diff)
downloadlinux-bb00788bd62778ef80a97d67a0e3c569ac6be06f.tar.gz
linux-bb00788bd62778ef80a97d67a0e3c569ac6be06f.tar.bz2
linux-bb00788bd62778ef80a97d67a0e3c569ac6be06f.zip
usb: gadget: uvc: rework pump worker to avoid while loop
The uvc_video_enable function is calling cancel_work_sync which will be blocking as long as new requests will be queued with the while loop. To ensure an earlier stop in the pumping loop in this particular case we rework the worker to requeue itself on every requests. Since the worker is already running prioritized, the scheduling overhad did not have real impact on the performance. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Link: https://lore.kernel.org/r/20230911140530.2995138-4-m.grzeschik@pengutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions