diff options
author | Johan Hovold <johan@kernel.org> | 2020-10-25 20:45:52 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-29 15:47:07 +0300 |
commit | 90d0cc80b9642dae6f2f94ddf8945dbe34b485e6 (patch) | |
tree | 574ec57d8da3211e2246b5a4c1040fc33390b2a1 /fs/btrfs | |
parent | 50e624f536815d54677a7f71730b23917f452570 (diff) | |
download | linux-90d0cc80b9642dae6f2f94ddf8945dbe34b485e6.tar.xz |
USB: serial: keyspan_pda: fix write unthrottling
commit 320f9028c7873c3c7710e8e93e5c979f4c857490 upstream.
The driver did not update its view of the available device buffer space
until write() was called in task context. This meant that write_room()
would return 0 even after the device had sent a write-unthrottle
notification, something which could lead to blocked writers not being
woken up (e.g. when using OPOST).
Note that we must also request an unthrottle notification is case a
write() request fills the device buffer exactly.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable <stable@vger.kernel.org>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/btrfs')
0 files changed, 0 insertions, 0 deletions