27 Mar, 2006

4 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial:
    drivers/char/ftape/lowlevel/fdc-io.c: Correct a comment
    Kconfig help: MTD_JEDECPROBE already supports Intel
    Remove ugly debugging stuff
    do_mounts.c: Minor ROOT_DEV comment cleanup
    BUG_ON() Conversion in drivers/s390/block/dasd_devmap.c
    BUG_ON() Conversion in mm/mempool.c
    BUG_ON() Conversion in mm/memory.c
    BUG_ON() Conversion in kernel/fork.c
    BUG_ON() Conversion in ipc/sem.c
    BUG_ON() Conversion in fs/ext2/
    BUG_ON() Conversion in fs/hfs/
    BUG_ON() Conversion in fs/dcache.c
    BUG_ON() Conversion in fs/buffer.c
    BUG_ON() Conversion in input/serio/hp_sdc_mlc.c
    BUG_ON() Conversion in md/dm-table.c
    BUG_ON() Conversion in md/dm-path-selector.c
    BUG_ON() Conversion in drivers/isdn
    BUG_ON() Conversion in drivers/char
    BUG_ON() Conversion in drivers/mtd/

    Linus Torvalds
     
  • This patch changes several mempool users, all of which are basically just
    wrappers around kmalloc(), to use the common mempool_kmalloc/kfree, rather
    than their own wrapper function, removing a bunch of duplicated code.

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

    Matthew Dobson
     
  • Semaphore to mutex conversion.

    The conversion was generated via scripts, and the result was validated
    automatically via a script as well.

    Signed-off-by: Ingo Molnar
    Cc: Dave Jones
    Cc: Paul Mackerras
    Cc: Ralf Baechle
    Cc: Jens Axboe
    Cc: Neil Brown
    Acked-by: Alasdair G Kergon
    Cc: Greg KH
    Cc: Dominik Brodowski
    Cc: Adam Belay
    Cc: Martin Schwidefsky
    Cc: "David S. Miller"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     
  • this changes if() BUG(); constructs to BUG_ON() which is
    cleaner, contains unlikely() and can better optimized away.

    Signed-off-by: Eric Sesterhenn
    Signed-off-by: Adrian Bunk

    Eric Sesterhenn
     

26 Mar, 2006

2 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial: (21 commits)
    BUG_ON() Conversion in drivers/video/
    BUG_ON() Conversion in drivers/parisc/
    BUG_ON() Conversion in drivers/block/
    BUG_ON() Conversion in sound/sparc/cs4231.c
    BUG_ON() Conversion in drivers/s390/block/dasd.c
    BUG_ON() Conversion in lib/swiotlb.c
    BUG_ON() Conversion in kernel/cpu.c
    BUG_ON() Conversion in ipc/msg.c
    BUG_ON() Conversion in block/elevator.c
    BUG_ON() Conversion in fs/coda/
    BUG_ON() Conversion in fs/binfmt_elf_fdpic.c
    BUG_ON() Conversion in input/serio/hil_mlc.c
    BUG_ON() Conversion in md/dm-hw-handler.c
    BUG_ON() Conversion in md/bitmap.c
    The comment describing how MS_ASYNC works in msync.c is confusing
    rcu: undeclared variable used in documentation
    fix typos "wich" -> "which"
    typo patch for fs/ufs/super.c
    Fix simple typos
    tabify drivers/char/Makefile
    ...

    Linus Torvalds
     
  • MODULE_PARM was actually breaking: recent gcc version optimize them out as
    unused. It's time to replace the last users, which are generally in the
    most unloved drivers anyway.

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

    Rusty Russell
     

25 Mar, 2006

1 commit


24 Mar, 2006

16 commits

  • Cast the argument correctly.

    Cc: Christoph Hellwig
    Cc: Martin Schwidefsky
    Cc: Heiko Carstens
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bastian Blank
     
  • Convert all kmalloc + memset sequences in drivers/s390 to kzalloc usage.

    Signed-off-by: Eric Sesterhenn
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Sesterhenn
     
  • Undetected edge case for CRT messages to CEX2A caused length to be too short,
    thus truncating the message. The solution was to check a different variable
    which actually determines which key type is being used.

    Increment version number in z90main.c to correct level of 1.3.3, fix copyright
    year and add comment about bitlength limit of CEX2A.

    Signed-off-by: Eric Rossman
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Rossman
     
  • Michael Holzheu ,
    Martin Schwidefsky

    Signed-off-by: Stefan Bader
    Signed-off-by: Michael Holzheu
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stefan Bader
     
  • If a tape device is assigned to another host, the interrupt for the assign
    operation comes back with deferred condition code 1. Under some conditions
    this can lead to an endless loop of retries. Check if the current request is
    still in IO in deferred condition code handling and prevent retries when the
    request has already been cancelled.

    Signed-off-by: Michael Holzheu
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Holzheu
     
  • When a request is aborted because of a signal, we currently stop the request
    via csh, but we do not wait for the interrupt of csh in any case. We free the
    request structure and therefore when the interrupt for the csh operation is
    presented, the request object is no longer valid and an invalid callback
    pointer is used.

    To fix this wait until the interrupt for csh arrives and until
    wait_event_interruptible() does not return -ERESTARTSYS.

    Signed-off-by: Michael Holzheu
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Holzheu
     
  • If a deferred CC happens there will be lots of messages, because the retry is
    done immediatly in the interrupt handler which can be too fast. To avoid this
    requeue the request and schedule the queue to be processed.

    Signed-off-by: Stefan Bader
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stefan Bader
     
  • The DASD extended error reporting is a facility that allows to get detailed
    information about certain problems in the DASD I/O. This information can be
    used to implement fail-over applications that can recover these problems.

    Signed-off-by: Stefan Weinhuber
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stefan Weinhuber
     
  • Use kzalloc to get a zeroed buffer for the structure returned to user space by
    the BIODASDINFO2 ioctl. Not all fields are set up, e.g. the read_devno is
    missing.

    Signed-off-by: Horst Hummel
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Horst Hummel
     
  • The dasd diag discipline has been tested on 64 bit and is no longer
    experimental.

    Signed-off-by: Peter Oberparleiter
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Oberparleiter
     
  • Now that there are no more users of the awkward dynamic ioctl hack we can
    remove the code to support it.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     
  • dasd_cmd just implements three ioctls which are wrappers around functionality
    in the core kernel or other modules. When merging those into dasd_mod they
    just add 22 lines of code which is far less than the amount of code removed in
    the last two patches, and which doesn't spill into another 4k pages when build
    modular, while removing a 128lines module.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     
  • Add an ->ioctl method to the dasd_discipline structure. This allows to apply
    the same kind of cleanups the last patch applied to dasd_ioctl.c to
    dasd_eckd.c (the only dasd discipline with special ioctls) aswell.

    Again lots of code removed. During auditing the ioctls I found two fishy
    return value propagations from copy_{from,to}_user, maintainers please check
    those, I've marked them with XXX comments.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     
  • Handle ioctls implemented in dasd_ioctl through the normal switch statement
    that most drivers use instead of the awkward dasd_ioctl_no_register routine.
    This avoids searching a linear list on every call to dasd_ioctl(), and allows
    to give the various ioctl implementation functions sane prototypes, aswell as
    moving the check for bdev->bd_disk->private_data from the individual functions
    to dasd_ioctl. (I think it can't actually every be NULL, but let's keep that
    for later)

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     
  • Gather extended measurements for channel paths from the channel subsystem and
    expose them to userspace via a sysfs attribute.

    Signed-off-by: Cornelia Huck
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Cornelia Huck
     
  • When cio waits for the interrupt for a basic sense, interrupts for hsch() or
    csch() issued in the meantime are wrongly counted as interrupts for the basic
    sense and the accumulated irb is passed to the device driver. In
    ccw_device_w4sense(), check for clear or halt function in the irb and pass the
    irb for the csch() or hsch() to the device driver.

    Signed-off-by: Cornelia Huck
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Cornelia Huck
     

23 Mar, 2006

5 commits

  • Semaphore to mutex conversion.

    The conversion was generated via scripts, and the result was validated
    automatically via a script as well.

    Signed-off-by: Arjan van de Ven
    Signed-off-by: Ingo Molnar
    Acked-by: Jens Axboe
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     
  • * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6:
    [PATCH] Use of uninitialized variable in drivers/net/depca.c
    [PATCH] Use after free in net/tulip/de2104x.c
    [PATCH] sis900 adm7001 PHY support
    [PATCH] sky2: more ethtool stats
    [PATCH] s390: qeth :allow setting of attribute "route6" to "no_router".
    [PATCH] s390: qeth driver cleanups
    [PATCH] s390: qeth driver statistics fixes
    [PATCH] AMD Au1xx0: fix Ethernet TX stats
    [PATCH] fix spidernet build issue

    Linus Torvalds
     
  • [patch 4/6] s390: qeth :allow setting of attribute "route6" to "no_router".

    From: Ursula Braun
    when setting route6 attribute back to no_router qeth does not
    issue an IP ASSIST command to reset router value to no_router.
    Once primary_router is set device stays in this mode.
    Issue an IP ASSIST command when no_router is set in route6.
    Device will be reset and thus will not longer run as a primary
    router.

    Signed-off-by: Frank Pavlic

    diffstat:
    qeth_main.c | 5 -----
    1 files changed, 5 deletions(-)
    Signed-off-by: Jeff Garzik

    Frank Pavlic
     
  • [patch 3/6] s390: qeth driver cleanups

    From: Ursula Braun
    - code analyzing tool BEAM has found some unreachable
    and unnecessary statements and also conditions
    which are always true.
    - removed some useless MII code since OSA card will never
    allow to set such values.

    Signed-off-by: Frank Pavlic

    diffstat:
    qeth_main.c | 49 ++++---------------------------------------------
    qeth_proc.c | 18 +++++++++---------
    qeth_sys.c | 2 +-
    3 files changed, 14 insertions(+), 55 deletions(-)
    Signed-off-by: Jeff Garzik

    Frank Pavlic
     
  • [patch 2/6] s390: qeth driver statistics fixes

    From: Ursula Braun
    - display "unsigned int" values in /proc/qeth_perf with %u instead of %i
    - omit qdio header length when increasing card->stats.tx_bytes

    Signed-off-by: Frank Pavlic

    diffstat:
    qeth_main.c | 3 ++-
    qeth_proc.c | 38 +++++++++++++++++++-------------------
    2 files changed, 21 insertions(+), 20 deletions(-)
    Signed-off-by: Jeff Garzik

    Frank Pavlic
     

22 Mar, 2006

1 commit


19 Mar, 2006

1 commit


15 Mar, 2006

2 commits


10 Mar, 2006

2 commits

  • This fixes a typo introduced with 90f0094dc607abe384a412bfb7199fb667ab0735.

    Signed-off-by: Horst Hummel
    Signed-off-by: Heiko Carstens
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Horst Hummel
     
  • The patch fixes following issues:

    (1) Replace scsi_add_device with scsi_scan_target.
    (Thus the rport instead of the scsi_host becomes parent of a
    scsi_target again.)

    (2) Avoid scsi_device allocation during registration of an remote port.
    (Would be done during fc_scsi_scan_rport.)

    (3) Fix queuecommand behaviour when an zfcp unit is blocked.
    (Call scsi_done with DID_NO_CONNECT instead of returning
    SCSI_MLQUEUE_DEVICE_BUSY otherwise we might end up waiting
    for completion in blk_execute_rq for ever.)

    Signed-off-by: Andreas Herrmann
    Signed-off-by: James Bottomley

    Andreas Herrmann
     

09 Mar, 2006

2 commits

  • DASD allows to open a device as soon as gendisk is registered, which means the
    device is a fake device (capacity=0) and we do know nothing about blocksize
    and partitions at that point of time. In case the device is opened by
    someone, the bdev and inode creation is done with the fake device info and the
    following partition detection code is just using the wrong data.

    To avoid this modify the DASD state machine to make sure that the open is
    rejected until the device analysis is either finished or an unformatted device
    was detected.

    Signed-off-by: Horst Hummel
    Signed-off-by: Heiko Carstens
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Horst Hummel
     
  • The message limit on the iucv connect call for the smsg module is too low.
    Therefore increase the smsg message limit to 255.

    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Heiko Carstens
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Martin Schwidefsky
     

07 Mar, 2006

1 commit


03 Mar, 2006

1 commit

  • It fixes a bug in zfcp which provokes a race
    in scsi_scan.c. Finally this can lead to an Oops like:

    kernel BUG at fs/sysfs/symlink.c:87!

    Correctly set this_id for the host. Otherwise we provoke
    a race between scsi_target_reap_work and concurrent
    scsi_add_device.

    Signed-off-by: Andreas Herrmann
    Signed-off-by: James Bottomley

    Andreas Herrmann
     

21 Feb, 2006

2 commits

  • Revert dasd eer module until we have a common understanding of how the
    interface should be.

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

    Heiko Carstens
     
  • When using the dasd diag discipline, the base discipline module (eckd or fba)
    can be unloaded, even though the dasd driver requires both discipline modules
    (base and diag) to work correctly.

    Implement reference counting for both base and diag discipline modules in
    order to fix this.

    Signed-off-by: Peter Oberparleiter
    Signed-off-by: Heiko Carstens
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Oberparleiter