tty_set_flow_change(tty, TTY_THROTTLE_SAFE);
if (receive_room(tty) >= TTY_THRESHOLD_THROTTLE)
break;
- up_read(&tty->termios_rwsem);
throttled = tty_throttle_safe(tty);
- down_read(&tty->termios_rwsem);
if (!throttled)
break;
}
if (!tty->count)
break;
n_tty_set_room(tty);
- up_read(&tty->termios_rwsem);
unthrottled = tty_unthrottle_safe(tty);
- down_read(&tty->termios_rwsem);
if (!unthrottled)
break;
}