1. 30 9月, 2006 8 次提交
  2. 28 8月, 2006 3 次提交
  3. 04 7月, 2006 2 次提交
  4. 01 7月, 2006 1 次提交
  5. 29 6月, 2006 3 次提交
    • P
      [PATCH] remove active field from tty buffer structure · 33b37a33
      Paul Fulghum 提交于
      Remove 'active' field from tty buffer structure.  This was added in 2.6.16
      as part of a patch to make the new tty buffering SMP safe.  This field is
      unnecessary with the more intelligently written flush_to_ldisc that adds
      receive_room handling.
      
      Removing this field reverts to simpler logic where the tail buffer is
      always the 'active' buffer, which should not be freed by flush_to_ldisc.
      (active == buffer being filled with new data)
      
      The result is simpler, smaller, and faster tty buffer code.
      Signed-off-by: NPaul Fulghum <paulkf@microgate.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: Theodore Ts'o <tytso@mit.edu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      33b37a33
    • P
      [PATCH] add receive_room flow control to flush_to_ldisc · 2c3bb20f
      Paul Fulghum 提交于
      Flush data serially to line discipline in blocks no larger than
      tty->receive_room to avoid losing data if line discipline is busy (such as
      N_TTY operating at high speed on heavily loaded system) or does not accept
      data in large blocks (such as N_MOUSE).
      Signed-off-by: NPaul Fulghum <paulkf@microgate.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      2c3bb20f
    • P
      [PATCH] remove TTY_DONT_FLIP · 817d6d3b
      Paul Fulghum 提交于
      Remove TTY_DONT_FLIP tty flag.  This flag was introduced in 2.1.X kernels
      to prevent the N_TTY line discipline functions read_chan() and
      n_tty_receive_buf() from running at the same time.  2.2.15 introduced
      tty->read_lock to protect access to the N_TTY read buffer, which is the
      only state requiring protection between these two functions.
      
      The current TTY_DONT_FLIP implementation is broken for SMP, and is not
      universally honored by drivers that send data directly to the line
      discipline receive_buf function.
      
      Because TTY_DONT_FLIP is not necessary, is broken in implementation, and is
      not universally honored, it is removed.
      Signed-off-by: NPaul Fulghum <paulkf@microgate.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: Theodore Ts'o <tytso@mit.edu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      817d6d3b
  6. 28 6月, 2006 1 次提交
  7. 27 6月, 2006 4 次提交
  8. 22 6月, 2006 1 次提交
  9. 24 5月, 2006 1 次提交
  10. 20 4月, 2006 1 次提交
  11. 14 4月, 2006 1 次提交
  12. 11 4月, 2006 3 次提交
  13. 01 4月, 2006 1 次提交
  14. 29 3月, 2006 2 次提交
  15. 27 3月, 2006 1 次提交
  16. 26 3月, 2006 1 次提交
  17. 23 3月, 2006 1 次提交
  18. 01 3月, 2006 1 次提交
  19. 15 2月, 2006 1 次提交
    • P
      [PATCH] tty reference count fix · da965822
      Paul Fulghum 提交于
      Fix hole where tty structure can be released when reference count is non
      zero.  Existing code can sleep without tty_sem protection between deciding
      to release the tty structure (setting local variables tty_closing and
      otty_closing) and setting TTY_CLOSING to prevent further opens.  An open
      can occur during this interval causing release_dev() to free the tty
      structure while it is still referenced.
      
      This should fix bugzilla.kernel.org [Bug 6041] New: Unable to handle kernel
      paging request
      
      In Bug 6041, tty_open() oopes on accessing the tty structure it has
      successfully claimed.  Bug was on SMP machine with the same tty being
      opened and closed by multiple processes, and DEBUG_PAGEALLOC enabled.
      Signed-off-by: NPaul Fulghum <paulkf@microgate.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: Jesper Juhl <jesper.juhl@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      da965822
  20. 11 2月, 2006 1 次提交
  21. 04 2月, 2006 1 次提交
    • P
      [PATCH] new tty buffering locking fix · 808249ce
      Paul Fulghum 提交于
      Change locking in the new tty buffering facility from using tty->read_lock,
      which is currently ignored by drivers and thus ineffective.  New locking
      uses a new tty buffering specific lock enforced centrally in the tty
      buffering code.
      
      Two drivers (esp and cyclades) are updated to use the tty buffering
      functions instead of accessing tty buffering internals directly.  This is
      required for the new locking to work.
      
      Minor checks for NULL buffers added to
      tty_prepare_flip_string/tty_prepare_flip_string_flags
      Signed-off-by: NPaul Fulghum <paulkf@microgate.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      808249ce
  22. 12 1月, 2006 1 次提交