1. Sep 03, 2008
  2. Sep 02, 2008
  3. Sep 01, 2008
    • Tejun Heo's avatar
      block: restore original behavior of /proc/partition when there's no partition · ddef43a8
      Tejun Heo authored
      /proc/partitions didn't use to write out the header if there was no
      partition.  However, recent commit 66c64afe
      
       changed the behavior.
      This is nothing major but there's no reason to change user visible
      behavior without a good rationale.  Restore the original behavior.
      
      Note that 2.6.28 has clean up changes scheduled which will replace
      this rather hacky implementation.
      
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Cc: Greg KH <greg@kroah.com>
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
      ddef43a8
    • NeilBrown's avatar
      Fix problem with waiting while holding rcu read lock in md/bitmap.c · b2d2c4ce
      NeilBrown authored
      
      
      A recent patch to protect the rdev list with rcu locking leaves us
      with a problem because we can sleep on memalloc while holding the
      rcu lock.
      
      The rcu lock is only needed while walking the linked list as
      uninteresting devices (failed or spares) can be removed at any time.
      
      So only take the rcu lock while actually walking the linked list.
      Take a refcount on the rdev during the time when we drop the lock
      and do the memalloc to start IO.
      When we return to the locked code, all the interesting devices
      on the list will not have moved, so we can simply use
      list_for_each_continue_rcu to pick up where we left off.
      
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      b2d2c4ce
    • NeilBrown's avatar
      Remove invalidate_partition call from do_md_stop. · 271f5a9b
      NeilBrown authored
      When stopping an md array, or just switching to read-only, we
      currently call invalidate_partition while holding the mddev lock.
      The main reason for this is probably to ensure all dirty buffers
      are flushed (invalidate_partition calls fsync_bdev).
      
      However if any dirty buffers are found, it will almost certainly cause
      a deadlock as starting writeout will require an update to the
      superblock, and performing that updates requires taking the mddev
      lock - which is already held.
      
      This deadlock can be demonstrated by running "reboot -f -n" with
      a root filesystem on md/raid, and some dirty buffers in memory.
      
      All other calls to stop an array should already happen after a flush.
      The normal sequence is to stop using the array (e.g. umount) which
      will cause __blkdev_put to call sync_blockdev.  Then open the
      array and issue the STOP_ARRAY ioctl while the buffers are all still
      clean.
      
      So this invalidate_partition is normally a no-op, except for one case
      where it will cause a deadlock.
      
      So remove it.
      
      This patch possibly addresses the regression recored in
         http://bugzilla.kernel.org/show_bug.cgi?id=11460
      and
         http://bugzilla.kernel.org/show_bug.cgi?id=11452
      
      
      
      though it isn't yet clear how it ever worked.
      
      
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      271f5a9b
    • Dave Airlie's avatar
      drm/radeon: downgrade debug message from info to debug. · 6c7be298
      Dave Airlie authored
      
      
      If this triggers its bad, however some machines seem to have been
      triggering it for ages and we didn't know until we added the debug.
      
      So downgrade the debug now so people don't call this a regression.
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      6c7be298
  4. Aug 30, 2008
  5. Aug 29, 2008
    • Clemens Ladisch's avatar
      ALSA: oxygen: fix distorted output on AK4396-based cards · df91bc23
      Clemens Ladisch authored
      
      
      When changing the sample rate, the CMI8788's master clock output becomes
      unstable for a short time.  The AK4396 needs the master clock to do SPI
      writes, so writing to an AK4396 control register directly after a sample
      rate change will garble the value.  In our case, this leads to the DACs
      being misconfigured to I2S sample format, which results in a wrong
      output level and horrible distortions on samples louder than -6 dB.
      
      To fix this, we need to wait until the new master clock signal has
      become stable before doing SPI writes.
      
      Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      df91bc23
    • FUJITA Tomonori's avatar
      remove blk_register_filter and blk_unregister_filter in gendisk · bb23b431
      FUJITA Tomonori authored
      This patch remove blk_register_filter and blk_unregister_filter in
      gendisk, and adds them to sd.c, sr.c. and ide-cd.c
      
      The commit abf54393
      
       moved cmdfilter
      from gendisk to request_queue. It turned out that in some subsystems
      multiple gendisks share a single request_queue. So we get:
      
      Using physmap partition information
      Creating 3 MTD partitions on "physmap-flash":
      0x00000000-0x01c00000 : "User FS"
      0x01c00000-0x01c40000 : "booter"
      kobject (8511c410): tried to init an initialized object, something is seriously wrong.
      Call Trace:
      [<8036644c>] dump_stack+0x8/0x34
      [<8021f050>] kobject_init+0x50/0xcc
      [<8021fa18>] kobject_init_and_add+0x24/0x58
      [<8021d20c>] blk_register_filter+0x4c/0x64
      [<8021c194>] add_disk+0x78/0xe0
      [<8027d14c>] add_mtd_blktrans_dev+0x254/0x278
      [<8027c8f0>] blktrans_notify_add+0x40/0x78
      [<80279c00>] add_mtd_device+0xd0/0x150
      [<8027b090>] add_mtd_partitions+0x568/0x5d8
      [<80285458>] physmap_flash_probe+0x2ac/0x334
      [<802644f8>] driver_probe_device+0x12c/0x244
      [<8026465c>] __driver_attach+0x4c/0x84
      [<80263c64>] bus_for_each_dev+0x58/0xac
      [<802633ec>] bus_add_driver+0xc4/0x24c
      [<802648e0>] driver_register+0xcc/0x184
      [<80100460>] _stext+0x60/0x1bc
      
      In the long term, we need to fix such subsystems but we need a quick
      fix now. This patch add the command filter support to only sd and sr
      though it might be useful for other SG_IO users (such as cciss).
      
      Signed-off-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
      Reported-by: default avatarManuel Lauss <mano@roarinelk.homelinux.net>
      Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
      bb23b431
    • David S. Miller's avatar
      sparc: Fix resource flags for PCI children in OF device tree. · e3c71a32
      David S. Miller authored
      
      
      When a device is under an EBUS or ISA bus, the resource flags
      don't get set properly.
      
      Fix this by re-evaluating the resource flags at each level of
      bus as we apply ranges on the way to the root.  And let PCI
      override any existing flags setting, but don't let the
      default flags calculator make such overrides.
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e3c71a32
    • Linus Torvalds's avatar
      Linux 2.6.27-rc5 · 24342c34
      Linus Torvalds authored
      24342c34
    • Linus Torvalds's avatar
      Merge master.kernel.org:/home/rmk/linux-2.6-arm · 41c3e45f
      Linus Torvalds authored
      * master.kernel.org:/home/rmk/linux-2.6-arm:
        [ARM] 5226/1: remove unmatched comment end.
        [ARM] Skip memory holes in FLATMEM when reading /proc/pagetypeinfo
        [ARM] use bcd2bin/bin2bcd
        [ARM] use the new byteorder headers
        [ARM] OMAP: Fix 2430 SMC91x ethernet IRQ
        [ARM] OMAP: Add and update OMAP default configuration files
        [ARM] OMAP: Change mailing list for OMAP in MAINTAINERS
        [ARM] S3C2443: Fix the S3C2443 clock register definitions
        [ARM] JIVE: Fix the spi bus numbering
        [ARM] S3C24XX: pwm.c: stop debugging output
        [ARM] S3C24XX: Fix sparse warnings in pwm.c
        [ARM] S3C24XX: Fix spare errors in pwm-clock driver
        [ARM] S3C24XX: Fix sparse warnings in arch/arm/plat-s3c24xx/gpiolib.c
        [ARM] S3C24XX: Fix nor-simtec driver sparse errors
        [ARM] 5225/1: zaurus: Register I2C controller for audio codecs
        [ARM] orion5x: update defconfig to v2.6.27-rc4
        [ARM] Orion: register UART1 on QNAP TS-209 and TS-409
        [ARM] Orion: activate lm75 driver on DNS-323
        [ARM] Orion: fix MAC detection on QNAP TS-209 and TS-409
        [ARM] Orion: Fix boot crash on Kurobox Pro
      41c3e45f
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6 · 604a2785
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6:
        Blackfin arch: Fix PM building on BF52x: No ROTWE on BF52x, add USBWE
        Blackfin arch: sram: use 'unsigned long' for irqflags
        Blackfin arch: let PCI depend on BROKEN
        Blackfin arch: move include/asm-blackfin header files to arch/blackfin
        Blackfin arch: fix bug - MPU crashes under stress
        Blackfin arch: Fix bug - when to rmmod the L1_module, it stucks and then reboot the board.
        Blackfin arch: dont actually need to muck with EMAC_SYSTAT for BF52x for demuxing
        Blackfin arch: Add MTD Partitions for MTD_DATAFLASH, increase max SPI SCLK
      604a2785
    • Linus Torvalds's avatar
      Merge branch 'core-fixes-for-linus' of... · 66833d5f
      Linus Torvalds authored
      Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        exit signals: use of uninitialized field notify_count
        lockdep: fix invalid list_del_rcu in zap_class
        lockstat: repair erronous contention statistics
        lockstat: fix numerical output rounding error
      66833d5f
    • Linus Torvalds's avatar
      Merge branch 'sched-fixes-for-linus' of... · 0234bf1d
      Linus Torvalds authored
      Merge branch 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        sched: rt-bandwidth accounting fix
        sched: fix sched_rt_rq_enqueue() resched idle
      0234bf1d