1. 17 6月, 2011 2 次提交
  2. 04 6月, 2011 1 次提交
    • L
      Revert "tty: make receive_buf() return the amout of bytes received" · 55db4c64
      Linus Torvalds 提交于
      This reverts commit b1c43f82.
      
      It was broken in so many ways, and results in random odd pty issues.
      
      It re-introduced the buggy schedule_work() in flush_to_ldisc() that can
      cause endless work-loops (see commit a5660b41: "tty: fix endless
      work loop when the buffer fills up").
      
      It also used an "unsigned int" return value fo the ->receive_buf()
      function, but then made multiple functions return a negative error code,
      and didn't actually check for the error in the caller.
      
      And it didn't actually work at all.  BenH bisected down odd tty behavior
      to it:
        "It looks like the patch is causing some major malfunctions of the X
         server for me, possibly related to PTYs.  For example, cat'ing a
         large file in a gnome terminal hangs the kernel for -minutes- in a
         loop of what looks like flush_to_ldisc/workqueue code, (some ftrace
         data in the quoted bits further down).
      
         ...
      
         Some more data: It -looks- like what happens is that the
         flush_to_ldisc work queue entry constantly re-queues itself (because
         the PTY is full ?) and the workqueue thread will basically loop
         forver calling it without ever scheduling, thus starving the consumer
         process that could have emptied the PTY."
      
      which is pretty much exactly the problem we fixed in a5660b41.
      
      Milton Miller pointed out the 'unsigned int' issue.
      Reported-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Reported-by: NMilton Miller <miltonm@bga.com>
      Cc: Stefan Bigler <stefan.bigler@keymile.com>
      Cc: Toby Gray <toby.gray@realvnc.com>
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      55db4c64
  3. 10 5月, 2011 1 次提交
  4. 30 4月, 2011 1 次提交
  5. 23 4月, 2011 1 次提交
  6. 20 4月, 2011 1 次提交
  7. 31 3月, 2011 1 次提交
  8. 10 3月, 2011 1 次提交
  9. 18 2月, 2011 3 次提交
  10. 04 2月, 2011 1 次提交
  11. 17 12月, 2010 2 次提交
  12. 12 11月, 2010 4 次提交
  13. 05 11月, 2010 1 次提交
  14. 11 8月, 2010 2 次提交
  15. 05 6月, 2010 1 次提交
  16. 22 5月, 2010 1 次提交
    • A
      tty: n_gsm line discipline · e1eaea46
      Alan Cox 提交于
      Add an implementation of GSM 0710 MUX. The implementation currently supports
      
      - Basic and advanced framing (as either end of the link)
      - UI or UIH data frames
      - Adaption layer 1-4 (1 and 2 via tty, 3 and 4 as skbuff lists)
      - Modem and control messages including the correct retry process
      - Flow control
      
      and exposes the MUX channels as a set of virtual tty devices including modem
      signals. This is an experimental driver.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      e1eaea46