diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2020-11-20 05:53:00 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2020-11-20 10:35:45 +0100 |
commit | 053af9e6e817fe58191b0d27bc67ba329d94ced2 (patch) | |
tree | 0b93cb676bb05445f4d79fa7ae3dec258eb37069 /MAINTAINERS | |
parent | USB: serial: mos7720: fix parallel-port state restore (diff) | |
download | linux-053af9e6e817fe58191b0d27bc67ba329d94ced2.tar.xz linux-053af9e6e817fe58191b0d27bc67ba329d94ced2.zip |
USB: serial: mos7720: defer state restore to a workqueue
The parallel port restore operation currently defers writes
to a tasklet, if it sees a locked disconnect mutex. The
driver goes to a lot of trouble to ensure writes happen
in a non-blocking context, but things can be greatly
simplified if it's done in regular process context and
this is not a system performance critical path. As such,
instead of doing the state restore writes in softirq context,
use a workqueue and just do regular synchronous writes.
In addition to the cleanup, this also imposes less on the
overall system as tasklets have been deprecated because
of it's softirq implications, potentially blocking a higher
priority task from running.
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Link: https://lore.kernel.org/r/20201120045300.28804-1-dave@stgolabs.net
[johan: amend commit message ("softirq context")]
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions