1. 31 1月, 2007 18 次提交
  2. 30 1月, 2007 5 次提交
    • M
      [PATCH] Fix SG_IO timeout jiffy conversion · c0d4d573
      Mike Christie 提交于
      Commit 85e04e37 cleaned up the timeout
      conversion, but did it exactly the wrong way.  We get msecs from user
      space, and should convert them into jiffies. Not the other way around.
      
      Here is a fix with the overflow check sg.c has added in.  This fixes DVD
      burnign with Nero.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      [ "you'll be wanting a comma there" - Andrew ]
      Cc: Andrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      c0d4d573
    • N
      [PATCH] Fix try_to_free_buffer() locking · 87df7241
      Nick Piggin 提交于
      Fix commit ecdfc978
      
      Not to put too fine a point on it, but in a nutshell...
      
      	__set_page_dirty_buffers() | try_to_free_buffers()
      	---------------------------+---------------------------
      	                           | spin_lock(private_lock);
      	                           | drop_bufers()
      	                           | spin_unlock(private_lock);
      	spin_lock(private_lock)    |
      	!page_has_buffers()        |
      	spin_unlock(private_lock)  |
      	SetPageDirty()             |
      	                           | cancel_dirty_page()
      
                                oops!
      Signed-off-by: NNick Piggin <npiggin@suse.de>
      Acked-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      87df7241
    • S
      [PATCH] sky2: revert IRQ dance on suspend/resume · 4cbf2aa3
      Stephen Hemminger 提交于
      Let's just backout the IRQ hack, and for those crap machines (like some
      Sony VAIO's) can just disable MSI with the module parameter.
      
      This reverts 44ade178.
      Signed-off-by: NStephen Hemminger <shemminger@linux-foundation.org>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Frédéric Riss <frederic.riss@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4cbf2aa3
    • L
      Fix balance_dirty_page() calculations with CONFIG_HIGHMEM · dc6e29da
      Linus Torvalds 提交于
      This makes balance_dirty_page() always base its calculations on the
      amount of non-highmem memory in the machine, rather than try to base it
      on total memory and then falling back on non-highmem memory if the
      mapping it was writing wasn't highmem capable.
      
      This not only fixes a situation where two different writers can have
      wildly different notions about what is a "balanced" dirty state, but it
      also means that people with highmem machines don't run into an OOM
      situation when regular memory fills up with dirty pages.
      
      We used to try to handle the latter case by scaling down the dirty_ratio
      if the machine had a lot of highmem pages in page_writeback_init(), but
      it wasn't aggressive enough for some situations, and since basing the
      dirty ratio on highmem memory was broken in the first place, let's just
      stop doing so.
      
      (A variation of this theme fixed Justin Piszcz's OOM problem when
      copying an 18GB file on a RAID setup).
      Acked-by: NNick Piggin <nickpiggin@yahoo.com.au>
      Cc: Justin Piszcz <jpiszcz@lucidpixels.com>
      Cc: Andrew Morton <akpm@osdl.org>
      Cc: Neil Brown <neilb@suse.de>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Randy Dunlap <rdunlap@xenotime.net>
      Cc: Christoph Lameter <clameter@sgi.com>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Adrian Bunk <bunk@stusta.de>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      dc6e29da
    • T
      [PATCH] ALSA: Fix sysfs breakage · 7d2aae1e
      Takashi Iwai 提交于
      The recent change for a new sysfs tree with card* object breaks the
      /sys/class/sound tree if CONFIG_SYSFS_DEPRECATED is enabled.
      The device in each entry doesn't point the correct device object:
      
        /sys/class/sound
        ...
        |-- pcmC0D0c
        |   |-- dev
        |   |-- device -> ../../../class/sound/card0
        |   |-- pcm_class
        |   |-- power
        |   |   `-- wakeup
        |   |-- subsystem -> ../../../class/sound
        |   `-- uevent
      
      Also, this change breaks some drivers (like sound/arm/*) referring
      card->dev directly to obtain the device object for memory handling.
      
      This patch reverts the semantics of card->dev to the former version,
      which points to a real device object.  The card* object is stored in a
      new card->card_dev field, instead.  The device parent is chosen either
      card->dev or card->card_dev according to CONFIG_SYSFS_DEPRECATED to
      keep the tree compatibility.
      Also, card* isn't created if CONFIG_SYSFS_DEPRECATED is enabled.  The
      reason of card* object is a root of all beloing devices, and it makes
      little sense if each sound device points to the real device object
      directly.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Acked-by: NMonty Montgomery <xiphmont@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      7d2aae1e
  3. 29 1月, 2007 2 次提交
  4. 28 1月, 2007 2 次提交
  5. 27 1月, 2007 13 次提交