diff options
author | Ben Hutchings <[email protected]> | 2014-05-19 00:56:22 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2014-05-24 02:25:10 +0900 |
commit | d7500135802ca55b3f4e01a16544e8b34082f8c3 (patch) | |
tree | 67baa0387aee5792f9d62e485e1add9dec14675d /net | |
parent | ffed54dced86723f352323f15789d9ad6bee25e1 (diff) |
Staging: speakup: Move pasting into a work item
Input is handled in softirq context, but when pasting we may
need to sleep. speakup_paste_selection() currently tries to
bodge this by busy-waiting if in_atomic(), but that doesn't
help because the ldisc may also sleep.
For bonus breakage, speakup_paste_selection() changes the
state of current, even though it's not running in process
context.
Move it into a work item and make sure to cancel it on exit.
References: https://bugs.debian.org/735202
References: https://bugs.debian.org/744015
Reported-by: Paul Gevers <[email protected]>
Reported-and-tested-by: Jarek Czekalski <[email protected]>
Signed-off-by: Ben Hutchings <[email protected]>
Cc: [email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions