1. 17 9月, 2007 2 次提交
  2. 13 9月, 2007 1 次提交
    • P
      Define termios_1 functions for powerpc, s390, avr32 and frv · b0052fca
      Paul Mackerras 提交于
      Commit f629307c introduced uses of
      kernel_termios_to_user_termios_1 and user_termios_to_kernel_termios_1
      on all architectures.  However, powerpc, s390, avr32 and frv don't
      currently define those functions since their termios struct didn't
      need to be changed when the arbitrary baud rate stuff was added, and
      thus the kernel won't currently build on those architectures.
      
      This adds definitions of kernel_termios_to_user_termios_1 and
      user_termios_to_kernel_termios_1 to include/asm-generic/termios.h
      which are identical to kernel_termios_to_user_termios and
      user_termios_to_kernel_termios respectively.  The definitions are the
      same because the "old" termios and "new" termios are in fact the same
      on these architectures (which are the same ones that use
      asm-generic/termios.h).
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Alan Cox <alan@redhat.com>
      Cc: David Miller <davem@davemloft.net>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b0052fca
  3. 12 9月, 2007 9 次提交
  4. 11 9月, 2007 9 次提交
  5. 06 9月, 2007 1 次提交
  6. 05 9月, 2007 1 次提交
  7. 03 9月, 2007 1 次提交
  8. 01 9月, 2007 4 次提交
    • T
      NFS: Fix a write request leak in nfs_invalidate_page() · 1b3b4a1a
      Trond Myklebust 提交于
      Ryusuke Konishi says:
      
      The recent truncate_complete_page() clears the dirty flag from a page
      before calling a_ops->invalidatepage(),
      ^^^^^^
      static void
      truncate_complete_page(struct address_space *mapping, struct page *page)
      {
              ...
              cancel_dirty_page(page, PAGE_CACHE_SIZE);  <--- Inserted here at
      kernel 2.6.20
      
              if (PagePrivate(page))
                      do_invalidatepage(page, 0);   ---> will call
      a_ops->invalidatepage()
              ...
      }
      
      and this is disturbing nfs_wb_page_priority() from calling 
      nfs_writepage_locked() that is expected to handle the pending
      request (=nfs_page) associated with the page.
      
      int nfs_wb_page_priority(struct inode *inode, struct page *page, int how)
      {
              ...
              if (clear_page_dirty_for_io(page)) {
                      ret = nfs_writepage_locked(page, &wbc);
                      if (ret < 0)
                              goto out;
              }
              ...
      }
      
      Since truncate_complete_page() will get rid of the page after
      a_ops->invalidatepage() returns, the request (=nfs_page) associated
      with the page becomes a garbage in nfs_inode->nfs_page_tree.
      ------------------------
      
      Fix this by ensuring that nfs_wb_page_priority() recognises that it may
      also need to clear out non-dirty pages that have an nfs_page associated
      with them.
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      1b3b4a1a
    • P
      [IA64] Cleanup HPSIM code (was: Re: Enable early console for Ski simulator) · 7b3166db
      Peter Chubb 提交于
      After my last patch we have a new header file for HP simulator use.
      Here's code to use it for stuff that used to have `extern' statements
      inline in the code.  Functionality should not change with this patch.
      Signed-off-by: NPeter Chubb <peterc@gelato.unsw.edu.au>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      7b3166db
    • P
      [IA64] Enable early console for Ski simulator · 8b713c67
      Peter Chubb 提交于
      This patch cleans up the `enable early console for SKI' patch
      (471e7a44), and
      1. potentially allows the gensparse_defconfig to work again.
         (there are other problems running a generic kernel on Ski)
      2. fixes the `console registered twice' problem.
      3. Cleans up the code by moving the `extern hpsim_cons' declaration to
         a new asm/hpsim.h file.
      
      Thanks to Jes for comments.
      Signed-off-by: NPeter Chubb <peterc@gelato.unsw.edu.au>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      8b713c67
    • J
      [IA64] SN: Add support for CPU disable · 6e9de181
      John Keller 提交于
      Add additional support for CPU disable on SN platforms.
      Correctly setup the smp_affinity mask for I/O error IRQs.
      Restrict the use of the feature to Altix 4000 and 450 systems
      running with a CPU disable capable PROM, and do not allow disabling
      of CPU 0.
      Signed-off-by: NJohn Keller <jpk@sgi.com>
      Signed-off-by: NTony Luck <tony.luck@intel.com>
      6e9de181
  9. 31 8月, 2007 12 次提交