1. 28 Apr, 2009 2 commits
    • Yinghai Lu's avatar
      x86/irq: remove leftover code from NUMA_MIGRATE_IRQ_DESC · fcef5911
      Yinghai Lu authored
      The original feature of migrating irq_desc dynamic was too fragile
      and was causing problems: it caused crashes on systems with lots of
      cards with MSI-X when user-space irq-balancer was enabled.
      
      We now have new patches that create irq_desc according to device
      numa node. This patch removes the leftover bits of the dynamic balancer.
      
      [ Impact: remove dead code ]
      Signed-off-by: default avatarYinghai Lu <yinghai@kernel.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Suresh Siddha <suresh.b.siddha@intel.com>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      LKML-Reference: <49F654AF.8000808@kernel.org>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      fcef5911
    • Yinghai Lu's avatar
      irq, cpumask: correct CPUMASKS_OFFSTACK typo and fix fallout · 9ec4fa27
      Yinghai Lu authored
      CPUMASKS_OFFSTACK is not defined anywhere (it is CPUMASK_OFFSTACK).
      It is a typo and init_allocate_desc_masks() is called before it set
      affinity to all cpus...
      
      Split init_alloc_desc_masks() into all_desc_masks() and init_desc_masks().
      
      Also use CPUMASK_OFFSTACK in alloc_desc_masks().
      
      [ Impact: fix smp_affinity copying/setup when moving irq_desc between CPUs ]
      Signed-off-by: default avatarYinghai Lu <yinghai@kernel.org>
      Acked-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Suresh Siddha <suresh.b.siddha@intel.com>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      LKML-Reference: <49F6546E.3040406@kernel.org>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      9ec4fa27
  2. 27 Apr, 2009 9 commits
  3. 26 Apr, 2009 14 commits
  4. 24 Apr, 2009 15 commits
    • Theodore Ts'o's avatar
      ext4: Do not try to validate extents on special files · c4b5a614
      Theodore Ts'o authored
      The EXTENTS_FL flag should never be set on special files, but if it
      is, don't bother trying to validate that the extents tree is valid,
      since only files, directories, and non-fast symlinks will ever have an
      extent data structure.  We perhaps should flag the filesystem as being
      corrupted if we see a special file (named pipes, device nodes, Unix
      domain sockets, etc.) with the EXTENTS_FL flag, but e2fsck doesn't
      currently check this case, so we'll just ignore this for now, since
      it's harmless.
      
      Without this fix, a special device with the extents flag is flagged as
      an error by the kernel, so it is impossible to access or delete the
      inode, but e2fsck doesn't see it as a problem, leading to
      confused/frustrated users.
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      c4b5a614
    • Rafael J. Wysocki's avatar
      PM/Hibernate: Fix waiting for image device to appear on resume · 0c8454f5
      Rafael J. Wysocki authored
      Commit c7510859 ("PM/Hibernate: Wait for
      SCSI devices scan to complete during resume") added a call to
      scsi_complete_async_scans() to software_resume(), so that it waited for
      the SCSI scanning to complete, but the call was added at a wrong place.
      
      Namely, it should have been added after wait_for_device_probe(), which
      is called only if the image partition hasn't been specified yet.  Also,
      it's reasonable to check if the image partition is present and only wait
      for the device probing and SCSI scanning to complete if it is not the
      case.
      
      Additionally, since noresume is checked right at the beginning of
      software_resume() and the function returns immediately if it's set, it
      doesn't make sense to check it once again later.
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      0c8454f5
    • David Howells's avatar
      ROMFS: Advance destination buffer pointer when reading from a blockdev · 4b2b0b97
      David Howells authored
      RomFS should advance the destination buffer pointer when reading data from a
      blockdev source (the data may be split over multiple blocks, each requiring its
      own sb_read() call).  Without this, all the data is copied to the beginning of
      the output buffer.
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Tested-by: default avatarMichal Simek <monstr@monstr.eu>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      4b2b0b97
    • David Howells's avatar
      ROMFS: romfs_lookup() shouldn't be doing a partial name comparison · 84baf74b
      David Howells authored
      romfs_lookup() should be using a routine akin to strcmp() on the backing store,
      rather than one akin to strncmp().  If it uses the latter, it's liable to match
      /bin/shutdown when looking up /bin/sh.
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Tested-by: default avatarMichal Simek <monstr@monstr.eu>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      84baf74b
    • Fred Isaman's avatar
      lib: find_last_bit.o needed by a module only, move it from lib to obj · a5422a51
      Fred Isaman authored
      Currently, although find_last_bit is EXPORTed, it is statically linked
      with the kernel and is referenced only under CONFIG_SMP.
      
      When CONFIG_SMP is undefined and find_last_bit is referenced only by
      modules, linking fails with:
      
        ERROR: "find_last_bit" [fs/nfs/nfs.ko] undefined!
      
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
      Signed-off-by: default avatarFred Isaman <iisaman@citi.umich.edu>
      Signed-off-by: default avatarBenny Halevy <bhalevy@panasas.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a5422a51
    • Marc Dionne's avatar
      CacheFiles: Fix the documentation to use the correct credential pointer names · 91ac033d
      Marc Dionne authored
      Adjust the CacheFiles documentation to use the correct names of the credential
      pointers in task_struct.
      
      The documentation was using names from the old versions of the credentials
      patches.
      Signed-off-by: default avatarMarc Dionne <marc.c.dionne@gmail.com>
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      91ac033d
    • Christian Borntraeger's avatar
      virtio-rng: Remove false BUG for spurious callbacks · e5b89542
      Christian Borntraeger authored
      The virtio-rng drivers checks for spurious callbacks. Since
      callbacks can be implemented via shared interrupts (e.g. PCI) this
      could lead to guest kernel oopses with lots of virtio devices.
      Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: stable@kernel.org
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e5b89542
    • Theodore Ts'o's avatar
      ext4: Ignore i_file_acl_high unless EXT4_FEATURE_INCOMPAT_64BIT is present · a9e81742
      Theodore Ts'o authored
      Don't try to look at i_file_acl_high unless the INCOMPAT_64BIT feature
      bit is set.  The field is normally zero, but older versions of e2fsck
      didn't automatically check to make sure of this, so in the spirit of
      "be liberal in what you accept", don't look at i_file_acl_high unless
      we are using a 64-bit filesystem.
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      a9e81742
    • Theodore Ts'o's avatar
      ext4: Fix softlockup caused by illegal i_file_acl value in on-disk inode · 485c26ec
      Theodore Ts'o authored
      If the block containing external extended attributes (which is stored
      in i_file_acl and i_file_acl_high) is larger than the on-disk
      filesystem, the process which tried to access the extended attributes
      will endlessly issue kernel printks complaining that
      "__find_get_block_slow() failed", locking up that CPU until the system
      is forcibly rebooted.
      
      So when we read in the inode, make sure the i_file_acl value is legal,
      and if not, flag the filesystem as being corrupted.
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      485c26ec
    • Linus Torvalds's avatar
      Merge branch 'fixes-for-linus' of git://git.monstr.eu/linux-2.6-microblaze · 9f5a6912
      Linus Torvalds authored
      * 'fixes-for-linus' of git://git.monstr.eu/linux-2.6-microblaze:
        microblaze: add parameter to microblaze_read()
        microblaze: Use CFLAGS_KERNEL instead of CFLAGS
        microblaze: Add STATE_SAVE_ARG_SPACE for noMMU kernel too
        microblaze: Do not check use_dcache
        microblaze: Do not use PVR configuration for broken MB version
        microblaze: Fix USR1/2 pvr printing message
        microblaze: iowrite upon timeout
        microblaze: Correspond CONFIG...PCMP in Makefile/Kconfig
        microblaze: Remove redundant variable
        microblaze: Move start_thread to process.c
        microblaze: Add missing preadv and pwritev syscalls
        microblaze: Add missing declaration for die and _exception func
        microblaze: Remove sparse error in traps.c
        microblaze: Move task_pt_regs up
        microblaze: Rename kernel_mode to pt_mode in pt_regs
        microblaze: Remove uncache shadow condition
        microblaze: Remove while(1) loop from show_regs function
        microblaze: Remove unneded per cpu SYSCALL_SAVE variable
      9f5a6912
    • Linus Torvalds's avatar
      Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 · ef54b1bb
      Linus Torvalds authored
      * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (34 commits)
        ACPI, i915: Register ACPI video even when not modesetting
        Revert "ACPICA: delete check for AML access to port 0x81-83"
        I/O port protection: update for windows compatibility.
        sony-laptop: always try to unblock rfkill on load
        sony-laptop: fix bogus error message display on resume
        ACPI: EC: Fix ACPI EC resume non-query interrupt message
        sony-laptop: SNC input event 38 fix
        sony-laptop: SNC 127 Initialization Fix
        sony-laptop: Duplicate SNC 127 Event Fix
        ACPI: prevent processor.max_cstate=0 boot crash
        ACPI/hpet: prevent boot hang when hpet=force used on ICH-4M
        ACPI: delete obsolete "bus master activity" proc field
        ACPI: idle: mark_tsc_unstable() at init-time, not run-time
        ACPI: add /sys/firmware/acpi/interrupts/sci_not counter
        ACPI video: fix an error when the brightness levels on AC and on Battery are same
        acpi-cpufreq: Do not let get_measured perf depend on internal variable
        acpi-cpufreq: style-only: add parens to math expression
        acpi-cpufreq: Cleanup: Use printk_once
        x86, acpi_cpufreq: Fix the NULL pointer dereference in get_measured_perf
        thinkpad-acpi: bump up version to 0.23
        ...
      ef54b1bb
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu · 9fe9293d
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
        m68knommu: update the default config for the ColdFire 5407C3 board
        m68knommu: update the default config for the ColdFire 5307C3 board
        m68knommu: update the default config for the ColdFire 5257EVB board
        m68knommu: update the default config for the ColdFire 5249EVB.
        m68knommu: add a defconfig for the ColdFire M5272C3 board
        m68knommu: update the defconfig for the ColdFire 5208evb board
        m68knommu: fix DMA support for ColdFire
        m68knommu: remove unused kernel stats offsets
        m68knommu: fix missing .data.cacheline_aligned section
        m68knommu: Fixed GPIO pin initialization for CONFIG_M5271 FEC.
      9fe9293d
    • Linus Torvalds's avatar
      Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · a4277bf1
      Linus Torvalds authored
      * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
        ext4: Fix potential inode allocation soft lockup in Orlov allocator
        ext4: Make the extent validity check more paranoid
        jbd: use SWRITE_SYNC_PLUG when writing synchronous revoke records
        jbd2: use SWRITE_SYNC_PLUG when writing synchronous revoke records
        ext4: really print the find_group_flex fallback warning only once
      a4277bf1
    • Linus Torvalds's avatar
      Merge master.kernel.org:/home/rmk/linux-2.6-arm · 6ae85d6d
      Linus Torvalds authored
      * master.kernel.org:/home/rmk/linux-2.6-arm:
        [ARM] 5460/1: Orion: reduce namespace pollution
        [ARM] 5458/1: pcmcia: pxa2xx-sharpsl: check if we do have Scoop config
        [ARM] 5457/1: mach-imx gpio buildfix
        [ARM] 5456/1: add sys_preadv and sys_pwritev
        [ARM] pxa/pcm990: start external GPIOs immediately after built-in ones
        [ARM] pxa/palm27x: General fix for Palm27x aSoC driver
        [ARM] pxa/mioa701: use GPIO95 as AC97 reset line
        [ARM] pxa: merge AC97 platform data structures
        [ARM] pxa/magician: remove un-necessary #include of pxa-regs.h and hardware.h
      6ae85d6d
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 · d72cd3a9
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6:
        USB: pwc : do not pass stack allocated buffers to USB core.
        USB: otg: Fix bug on remove path without transceiver
        USB: correct error handling in cdc-wdm
        USB: removal of tty->low_latency hack dating back to the old serial code
        USB: serial: sierra driver bug fix for composite interface
        USB: gadget: omap_udc uses platform_driver_probe()
        USB: ci13xxx_udc: fix build error
        USB: musb: Prevent multiple includes of musb.h
        USB: pass mem_flags to dma_alloc_coherent
        USB: g_file_storage: fix use-after-free bug when closing files
        USB: ehci-sched.c: EHCI SITD scheduling bugfix
        USB: fix mos7840 problem with minor numbers
        USB: mos7840: add new device id
        USB: musb: fix build when !CONFIG_PM
        USB: musb: Remove my email address from few musb related drivers
        USB: Gadget: MIPS CI13xxx UDC bugfixes
        USB: Unusual Device support for Gold MP3 Player Energy
        USB: serial: fix lifetime and locking problems
      d72cd3a9