]> git.baikalelectronics.ru Git - kernel.git/commit
n_tty: Fix stuck throttled driver
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 6 Mar 2013 13:20:53 +0000 (08:20 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2013 23:11:59 +0000 (16:11 -0700)
commit49b0c49fb339bd3b83b3d106c6c171ae2db96142
tree3459953655d71ed43cedd3ecdc9fe637b7960bd0
parent1d95a5503e9ce0230b6cd925238c34d2c903e9dc
n_tty: Fix stuck throttled driver

As noted in the following comment:

  /* FIXME: there is a tiny race here if the receive room check runs
     before the other work executes and empties the buffer (upping
     the receiving room and unthrottling. We then throttle and get
     stuck. This has been observed and traced down by Vincent Pillet/
     We need to address this when we sort out out the rx path locking */

Use new safe throttle/unthrottle functions to re-evaluate conditions
if interrupted by the complement flow control function.

Reported-by: Vincent Pillet <vincentx.pillet@intel.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c