1. 23 4月, 2006 4 次提交
    • A
      [PATCH] x86_64: Pass -32 to the assembler when compiling the 32bit vsyscall pages · ddbe3eec
      Andi Kleen 提交于
      This quietens warnings and actually fixes a bug.  The unwind tables would
      come out wrong without -32, causing pthread cancellation during them to
      crash in the gcc runtime.
      
      The problem seems to only happen with newer binutils (it doesn't happen
      with 2.16.91.0.2 but happens wit 2.16.91.0.5)
      
      Thanks to David Altobelli <david.altobelli@hp.com> and Brian Baker
      <Brian.B@hp.com> for test case and initial analysis.
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      ddbe3eec
    • L
      [PATCH] add migratepage address space op to shmem · 304dbdb7
      Lee Schermerhorn 提交于
      Basic problem: pages of a shared memory segment can only be migrated once.
      
      In 2.6.16 through 2.6.17-rc1, shared memory mappings do not have a
      migratepage address space op.  Therefore, migrate_pages() falls back to
      default processing.  In this path, it will try to pageout() dirty pages.
      Once a shared memory page has been migrated it becomes dirty, so
      migrate_pages() will try to page it out.  However, because the page count
      is 3 [cache + current + pte], pageout() will return PAGE_KEEP because
      is_page_cache_freeable() returns false.  This will abort all subsequent
      migrations.
      
      This patch adds a migratepage address space op to shared memory segments to
      avoid taking the default path.  We use the "migrate_page()" function
      because it knows how to migrate dirty pages.  This allows shared memory
      segment pages to migrate, subject to other conditions such as # pte's
      referencing the page [page_mapcount(page)], when requested.
      
      I think this is safe.  If we're migrating a shared memory page, then we
      found the page via a page table, so it must be in memory.
      
      Can be verified with memtoy and the shmem-mbind-test script, both
      available at:  http://free.linux.hp.com/~lts/Tools/Signed-off-by: NLee Schermerhorn <lee.schermerhorn@hp.com>
      Acked-by: NChristoph Lameter <clameter@sgi.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      304dbdb7
    • A
      [PATCH] x86_64: sparsemem does not need node_mem_map · 3b5fd59f
      Andy Whitcroft 提交于
      Seems we are trying to init the node_mem_map when we don't need to, for
      example when SPARSEMEM is enabled.  This causes the error below during
      compilation.  Use CONFIG_FLAT_NODE_MEM_MAP to gate allocation and init.
      
        arch/x86_64/mm/numa.c: In function `setup_node_zones':
        arch/x86_64/mm/numa.c:191: error: structure has no member
                                                        named `node_mem_map'
      Signed-off-by: NAndy Whitcroft <apw@shadowen.org>
      Acked-by: NAndi Kleen <ak@muc.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      3b5fd59f
    • T
      [PATCH] isdn4linux: Siemens Gigaset base driver: fix disconnect handling · 73a88814
      Tilman Schmidt 提交于
      Fix a possible Oops in the Siemens Gigaset base driver when the device is
      unplugged while an ISDN connection is still active, and makes sure that the
      isdn4linux link level (LL) is properly informed if a connection is broken
      by the USB cable being unplugged.
      
      - Avoid unsafe checks of URB status fields outside the URB completion
        handlers, keep track of in-use URBs myself instead.
      
      - If an isochronous transfer URB completes with status==0, also check the
        status of the frame descriptors.
      
      - Verify length of interrupt messages received from the device.
      
      - Align the length limit on transmitted AT commands with the device
        documentation.
      
      - In case of AT response receive overrun, keep newly arrived instead of old
        unread data.
      
      - Remove redundant check of device ID in the USB probe function.
      
      - Correct and improve some comments and formatting.
      Signed-off-by: NTilman Schmidt <tilman@imap.cc>
      Acked-by: NHansjoerg Lipp <hjlipp@web.de>
      Cc: Karsten Keil <kkeil@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      73a88814
  2. 21 4月, 2006 11 次提交
  3. 20 4月, 2006 25 次提交