1. 03 Oct, 2004 36 commits
  2. 02 Oct, 2004 4 commits
    • Linus Torvalds's avatar
      tty locking fixups: remove unused "flags" variable · bce2e8bc
      Linus Torvalds authored
      It became obsolete when the termios locking was changed
      to use a per-tty semaphore.
      bce2e8bc
    • Benjamin Herrenschmidt's avatar
      [PATCH] Fix booting on some recent G5s · d1337a32
      Benjamin Herrenschmidt authored
      Some recent G5s have a problem with PCI/HT probing.  They crash (machine
      check) during the probe of some slot numbers, it seems to be related to
      some functions beeing disabled by the firmware inside the K2 ASIC.
      
      This patch limits the config space accesses to devices that are present
      in the OF device-tree.  This fixes the problem and shouldn't "add" any
      limitation.  If you plug a "random" PCI card with no OF driver, the
      firmware will still build a node for it with the default set of
      properties created from the config space. 
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      d1337a32
    • Linus Torvalds's avatar
      Fix close() vs posix lock race · b044105d
      Linus Torvalds authored
      A threaded app that posix-locks and closes the same file
      in two threads concurrently may result in a posix lock
      that was never visible to the closer, and that thus needs
      cleanup on the final fput.
      
      Handle it together with the regular flocks.
      b044105d
    • Alan Cox's avatar
      [PATCH] Update termios to use per tty semaphore · cf54a5af
      Alan Cox authored
      This makes the agreed change of termios locking to be semaphore based
      sleep locking. This is needed for USB in particular as it has to use
      messaging to issue terminal mode changes.
      
      This code passes Torvalds test grades 0, 1 and 2 (it looks ok, it
      compiles and it booted). It does mean that a driver cannot take an
      atomic peek at termios data during an interrupt. Nobody seems to be
      doing this although some of the driver receive paths for line
      disciplines will eventually want to (n_tty currently doesn't do this
      locked on the receive path). Since the ldisc is given a chance to copy
      any essential bits on the ->set_termios path this seems not to be a
      problem.
      cf54a5af