1. 11 4月, 2007 1 次提交
    • S
      ide: correctly prevent IDE timer expiry function to run if request was already handled · 23450319
      Suleiman Souhlal 提交于
      It is possible for the timer expiry function to run even though the
      request has already been handled: ide_timer_expiry() only checks that
      the handler is not NULL, but it is possible that we have handled a
      request (thus clearing the handler) and then started a new request
      (thus starting the timer again, and setting a handler). 
      
      A simple way to exhibit this is to set the DMA timeout to 1 jiffy and
      run dd: The kernel will panic after a few minutes because
      ide_timer_expiry() tries to add a timer when it's already active.
      
      To fix this, we simply add a request generation count that gets
      incremented at every interrupt, and check in ide_timer_expiry() that
      we have not already handled a new interrupt before running the expiry
      function.
      Signed-off-by: NSuleiman Souhlal <suleiman@google.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      23450319
  2. 10 4月, 2007 1 次提交
  3. 09 4月, 2007 6 次提交
  4. 08 4月, 2007 4 次提交
  5. 07 4月, 2007 3 次提交
  6. 06 4月, 2007 5 次提交
  7. 05 4月, 2007 13 次提交
  8. 04 4月, 2007 7 次提交
    • E
      [PATCH] net: Ignore sysfs network device rename bugs. · 92749821
      Eric W. Biederman 提交于
      The generic networking code ensures that no two networking devices
      have the same name, so  there is no time except when sysfs has
      implementation bugs that device_rename when called from
      dev_change_name will fail.
      
      The current error handling for errors from device_rename in
      dev_change_name is wrong and results in an unusable and unrecoverable
      network device if device_rename is happens to return an error.
      
      This patch removes the buggy error handling.  Which confines the mess
      when device_rename hits a problem to sysfs, instead of propagating it
      the rest of the network stack.  Making linux a little more robust.
      
      Without this patch you can observe what happens when sysfs has a bug
      when CONFIG_SYSFS_DEPRECATED is not set and you attempt to rename
      a real network device to a name like (broken_parity_status, device,
      modalias, power, resource2, subsystem_vendor, class,  driver, irq,
      msi_bus, resource, subsystem, uevent, config, enable, local_cpus,
      numa_node, resource0, subsystem_device, vendor)
      
      Greg has a patch that fixes the sysfs bugs but he doesn't trust it
      for a 2.6.21 timeframe.  This patch which just ignores errors should
      be safe and it keeps the system from going completely wacky.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      92749821
    • D
      [PATCH] SLAB: Mention slab name when listing corrupt objects · e94a40c5
      David Howells 提交于
      Mention the slab name when listing corrupt objects.  Although the function
      that released the memory is mentioned, that is frequently ambiguous as such
      functions often release several pieces of memory.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e94a40c5
    • L
      Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev · bb4899db
      Linus Torvalds 提交于
      * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev:
        libata: Limit ATAPI DMA to R/W commands only for TORiSAN DVD drives (take 3)
        libata: Limit max sector to 128 for TORiSAN DVD drives (take 3)
        libata: Clear tf before doing request sense (take 3)
        libata: reorder HSM_ST_FIRST for easier decoding (take 3)
        libata bugfix: preserve LBA bit for HDIO_DRIVE_TASK
        2.6.21 fix lba48 bug in libata fill_result_tf()
      bb4899db
    • R
      [PATCH] libata: add NCQ blacklist entries from Silicon Image Windows driver (v2) · 36e337d0
      Robert Hancock 提交于
      This adds some NCQ blacklist entries taken from the Silicon Image 3124/3132
      Windows driver .inf files. There are some confirming reports of problems
      with these drives under Linux (for example http://lkml.org/lkml/2007/3/4/178)
      so let's disable NCQ on these drives.
      
       [ I'm personally starting to wonder whether we shouldn't disable NCQ by
         default, and perhaps have a white-list. There seems to be a *lot* of
         drives that do this wrong..   - Linus ]
      Signed-off-by: NRobert Hancock <hancockr@shaw.ca>
      Acked-by: NTejun Heo <htejun@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      36e337d0
    • L
      Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6 · b6d3d16e
      Linus Torvalds 提交于
      * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6:
        r8169: fix suspend/resume for down interface
        r8169: issue request_irq after the private data are completely initialized
        b44: fix IFF_ALLMULTI handling of CAM slots
        cxgb3 - Firwmare update
        cxgb3 - Tighten xgmac workaround
        cxgb3 - detect NIC only adapters
        cxgb3 - Safeguard TCAM size usage
      b6d3d16e
    • C
      [S390] cio: Fix handling of interrupt for csch(). · 8c3ce5be
      Cornelia Huck 提交于
      Wipe internal irb if the clear function bit is set before accumulating
      bits from the irb in order to follow hardware behaviour.
      Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      8c3ce5be
    • M
      [S390] page_mkclean data corruption. · 6e1beb3c
      Martin Schwidefsky 提交于
      The git commit c2fda5fe which
      added the page_test_and_clear_dirty call to page_mkclean and the
      git commit 7658cc28 which fixes
      the "nasty and subtle race in shared mmap'ed page writeback"
      problem in clear_page_dirty_for_io cause data corruption on s390.
      
      The effect of the two changes is that for every call to
      clear_page_dirty_for_io a page_test_and_clear_dirty is done. If
      the per page dirty bit is set set_page_dirty is called. Strangly
      clear_page_dirty_for_io is called for not-uptodate pages, e.g.
      over this call-chain:
      
       [<000000000007c0f2>] clear_page_dirty_for_io+0x12a/0x130
       [<000000000007c494>] generic_writepages+0x258/0x3e0
       [<000000000007c692>] do_writepages+0x76/0x7c
       [<00000000000c7a26>] __writeback_single_inode+0xba/0x3e4
       [<00000000000c831a>] sync_sb_inodes+0x23e/0x398
       [<00000000000c8802>] writeback_inodes+0x12e/0x140
       [<000000000007b9ee>] wb_kupdate+0xd2/0x178
       [<000000000007cca2>] pdflush+0x162/0x23c
      
      The bad news now is that page_test_and_clear_dirty might claim
      that a not-uptodate page is dirty since SetPageUptodate which
      resets the per page dirty bit has not yet been called. The page
      writeback that follows clobbers the data on disk.
      
      The simplest solution to this problem is to move the call to
      page_test_and_clear_dirty under the "if (page_mapped(page))".
      If a file backed page is mapped it is uptodate.
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      6e1beb3c