28 Jul, 2005

38 commits

  • The madvise() system call returns -EBADF for areas which does not map to
    files, only for *behaviour* request MADV_WILLNEED.

    According to man pages, madvise returns :

    EBADF - the map exists, but the area maps something that isn't a file.

    Fixes bug 2995.

    Signed-off-by: Suzuki K P
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    suzuki
     
  • Attached patch removes #ifdef CONFIG_WATCHDOG_NOWAYOUT mess duplicated in
    almost every watchdog driver and replaces it with common define in
    linux/watchdog.h.

    Signed-off-by: Andrey Panin
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrey Panin
     
  • powernow-k8.c: In function `query_current_values_with_pending_wait':
    powernow-k8.c:110: warning: `hi' may be used uninitialized in this function

    Signed-off-by: Brian Gerst
    Cc: Dave Jones
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Brian Gerst
     
  • Signed-off-by: Alexey Dobriyan
    Cc: Dave Airlie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • Add support for the MRi PCIDS1 dual port serial card. This card is a
    little controversial since it is the subject of a PCI vendor/device ID
    clash. (See
    http://www.ussg.iu.edu/hypermail/linux/kernel/0303.1/0516.html). I have
    for now just used the hex ID 0x950a. The divisor was part calculated part
    iterated, so may not be exactly correct (but works for me at all settings
    between 300 - 115300 bps).

    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Ranson
     
  • For some reason halfmd4 isn't being linked into the kernel any more and
    modular ext3 wants it.

    So statically link the halfmd4 code into the kernel.

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Fix bug identifued by Richard Purdie .

    oprofile calls check_user_page_readable() from interrupt context, so we
    deadlock over various VFS locks.

    But check_user_page_readable() doesn't imply either a read or a write of the
    page's contents. Change __follow_page() so that check_user_page_readable()
    can tell __follow_page() that we're not accessing the page's contents, and use
    that info to avoid the troublesome lock-takings.

    Also, make follow_page() inline for the single callsite in memory.c to save a
    bit of stack space.

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Oliver Paukstadt from our test department is testing the xip patches in
    Linus' git-tree. He found a problem that shows when reading a file that
    contains sparse blocks (holes) on a -o xip mounted ext2 filesystem: the
    BUG_ON() in fs/ext2/xip.c:40 triggers where it should not. The problem was
    introduced by a cleanup in my previous patch, this patch fixes it.

    Signed-off-by: Carsten Otte
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Carsten Otte
     
  • This patch fixes a microcode lockup in my CD-ROM adapters when a blank CD
    is inserted. However, do not try to burn CDs yet! I'm pretty sure that
    trying it will end in coasters.

    - Fix a few cases where we were unable to resynchronize with replies
    for previous commands. The main thing is to keep reading replies
    in case of a stall. This is done with the new state CLRRS.
    - Since I am forgetting the basic state machine already, document it.
    - Move counter increments in the looping path in its own function.
    - Fix a harmless buglet in case CSW read fails to submit: do not
    override state.
    - Implement the Alan Stern's idea for adaptive signature checking.

    Signed-off-by: Pete Zaitcev
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pete Zaitcev
     
  • All mempolicy changes must be inside the spinlock and readding the rb_erase
    prevents a crash while doing:

    > echo "1" > /tmp/numatest
    > numactl --length=0x4000 --shm /tmp/numatest --localalloc
    > numactl --length=0x2000 --offset=0 --shm /tmp/numatest --membind=0
    > numactl --length=0x2000 --offset=0x2000 --shm /tmp/numatest --membind=1
    > ipcs
    > ipcrm -M "the_key_value_of_this_shm_area"

    Based on a patch by John Blackwood

    Cc:
    Cc:
    Signed-off-by: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • - updates the version

    - fix mixing of declarations and code. The mixing of declarations and
    code displays warnings when used against RedHat RHEL4.0 distro (compiler
    version is 3.4.3-22.1) and hence I separated them out.

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    V. ANANDA KRISHNAN
     
  • The jsm driver uses a static number of 253. The major number 253 is a
    reserved for "LOCAL/EXPERIMENTAL USE" by both char and block devices. So
    take advantage of the dynamic allocation of major number by the kernel.

    Signed-off-by: V. Ananda Krishnan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    V. ANANDA KRISHNAN
     
  • This patch adds support for the Olitec ISDN PCI card in the hisax gazel
    driver. The gazel driver supports this card, but wasn't aware of its PCI
    ids. Users used to modify the PCI ids of a supported card in
    include/linux/pci_ids.h and recompile their kernel to get this card
    running, as said in most Howtos. This patch makes the hisax gazel driver
    recognize the PCI ids of the Olitec ISDN PCI card.

    Signed-off-by: Olivier Blin
    Signed-off-by: Karsten Keil
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Olivier Blin
     
  • Adds a missing check for an error return code from scsi_sysfs_add_sdev.
    This resolves entry #4863 in the OSDL bugzilla. Although in that bug
    report the failure occurred because of a confusion over scanning vs.
    rescanning, in general add_sdev can fail for a number of reasons (the
    simplest being insufficient memory) and the caller should cope properly.

    Signed-off-by: Alan Stern
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Stern
     
  • If the automount daemon receives a signal which causes it to sumarily
    terminate the autofs4 module leaks dentries. The same problem exists with
    detached mount requests without the warning.

    This patch cleans these dentries at umount.

    Signed-off-by: Ian Kent
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ian Kent
     
  • Signed-off-by: Dominik Brodowski
    Acked-by: Grant Grundler
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dominik Brodowski
     
  • Fix the recent off-by-one fix in the itimer code:

    1. The repeating timer is figured using the requested time
    (not +1 as we know where we are in the jiffie).

    2. The tests for interval too large are left to the time_val to jiffie code.

    Signed-off-by: George Anzinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    George Anzinger
     
  • Usually the device IDs are given in hex. This one is a bit strange: it is
    without 0x in the first place and used with it some lines later. I suspect
    the first one to be the wrong.

    Signed-off-by: Rolf Eike Beer
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rolf Eike Beer
     
  • This patch fixes a warning in the disable_nonboot_cpus call in
    kernel/power/smp.c.

    Signed-off by: Nigel Cunningham

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nigel Cunningham
     
  • drivers/pnp/pnpbios/rsparser.c: In function 'pnpbios_parse_allocated_irqresource':
    drivers/pnp/pnpbios/rsparser.c:67: error: too many arguments to function 'pcibios_penalize_isa_irq'

    Signed-off-by: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • We must drop references to quota structures before releasing the inode.

    Signed-off-by: Jan Kara
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Kara
     
  • We must drop references to quota structures before releasing the inode.

    Signed-off-by: Jan Kara
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Kara
     
  • reiserfs_new_inode() can call iput() with the xattr lock held. This will
    cause a deadlock to occur when reiserfs_delete_xattrs() is called to clean
    up.

    The following patch releases the lock and reacquires it after the iput.
    This is safe because interaction with xattrs is complete, and the relock is
    just to balance out the release in the caller.

    The locking needs some reworking to be more sane, but that's more intrusive
    and I was just looking to fix this bug.

    Signed-off-by: Jeff Mahoney
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Mahoney
     
  • AS is doing internal msecjiffies conversions twice, so the sysfs tunables
    which represent time are coming out wrong. The switch from HZ=1000 exposed
    this.

    Cc: Nick Piggin
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jens Axboe
     
  • Here's a patch to fix a missing refrigerator call in jffs2.

    Signed-off-by: Nigel Cunningham
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nigel Cunningham
     
  • Tvaudio lacks a refrigerator call. This patch fixes that.

    Signed-off-by: Nigel Cunningham
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nigel Cunningham
     
  • Here are fixes for four try_to_freeze calls that are still (incorrectly)
    using a parameter after the recent try_to_freeze() changes.

    Signed-off-by: Nigel Cunningham
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nigel Cunningham
     
  • Fixes boot up lockups on some machines where CPU apic ids don't start with
    0

    Signed-off-by: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen
     
  • This fixes an interface which differed from its declaration, and includes
    the relevant header so that this doesn't happen again.

    Signed-off-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • This patch replaces the deprecated MODULE_PARM function by the new
    module_param function.

    Signed-off-by: Dominik Hackl
    Signed-off-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dominik Hackl
     
  • This adds the "skas0" parameter to force skas0 operation on SKAS3 host and
    shows which operating mode has been selected.

    Signed-off-by: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paolo 'Blaisorblade' Giarrusso
     
  • the header file must be build before mk_user_constants. Adding it as a
    direct dep doesnt work for some reason.

    arch/um/os-Linux/util/mk_user_constants.c:2:26: error: user-offsets.h: No such file or directory
    arch/um/os-Linux/util/mk_user_constants.c: In function 'main':
    arch/um/os-Linux/util/mk_user_constants.c:17: error: '__UM_FRAME_SIZE' undeclared (first use in this function)
    arch/um/os-Linux/util/mk_user_constants.c:17: error: (Each undeclared identifier is reported only once
    arch/um/os-Linux/util/mk_user_constants.c:17: error: for each function it appears in.)
    make[1]: *** [arch/um/os-Linux/util/mk_user_constants] Error 1

    Signed-off-by: Olaf Hering
    Cc: Paolo Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Olaf Hering
     
  • scripts/Makefile.build:13: /Makefile: No such file or directory
    scripts/Makefile.build:64: kbuild: Makefile.build is included improperly

    the define was removed, but its still required to build some targets.

    Signed-off-by: Olaf Hering
    Cc: Paolo Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Olaf Hering
     
  • Without this, and attempt to 'grow' an array will claim to have synced the
    extra part without actually having done anything.

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • arch/mips/Kconfig is defining CONFIG_FB as bool and drivers/video/Kconfig
    was changed a while ago to define it as tristate. Remove the MIPS
    definition.

    Signed-off-by: Yoichi Yuasa
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yoichi Yuasa
     
  • One chunk was lost somewhere between my and Andrew's machine.

    Noticed by Victor Fusco.

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • A previous patch to remove support for the OCP device model was way to
    generious and moved some of the platform device model code, oops.

    Signed-off-by: Kumar Gala
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kumar Gala
     
  • include/asm/ptrace.h: In function `user_mode_vm':
    include/asm/ptrace.h:67: `VM_MASK' undeclared (first use in this function)

    Cc: Chuck Ebbert
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     

27 Jul, 2005

2 commits