29 Mar, 2006

1 commit

  • Mark the f_ops members of inodes as const, as well as fix the
    ripple-through this causes by places that copy this f_ops and then "do
    stuff" with it.

    Signed-off-by: Arjan van de Ven
    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     

27 Mar, 2006

1 commit

  • Modify well over a dozen mempool users to call mempool_create_slab_pool()
    rather than calling mempool_create() with extra arguments, saving about 30
    lines of code and increasing readability.

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

    Matthew Dobson
     

26 Mar, 2006

1 commit

  • This patch fixes i2o_dump_hrt output from dmesg:

    iop0: HRT has 1 entries of 16 bytes each.
    Adapter 00000012: TID 0000:[HPC*]:PCI 1: Bus 1 Device 22
    Function 0

    Signed-off-by: Vasily Averin
    Cc: Markus Lidel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Vasily Averin
     

12 Mar, 2006

1 commit


06 Feb, 2006

1 commit

  • Fix http://bugzilla.kernel.org/show_bug.cgi?id=5923

    When a scsi command failed, an oops would result.

    Back-to-back SMART queries would make the Seagate drives unhappy. The
    second SMART query would timeout, and the command would be aborted.

    Acked-by: Markus Lidel
    Cc: Kenny Simpson
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Markus Lidel
     

04 Feb, 2006

2 commits


15 Jan, 2006

2 commits

  • There was a use before initialisation of c->name

    Signed-off-by: James Bottomley

    James Bottomley
     
  • The problem in dpt_i2o could be the pci config space accesses it
    triggers as it loads, dangerous to do if there is any I/O activity going
    on in the other driver (probable if a boot driver I guess).

    I approve this patch to dpt_i2o.c, and am applying it to the Adaptec
    branch of the driver.

    Thanks for the investigation Ryoji.

    ---

    In linux 2.6.15, data transfer does hang when both dpt_i2o
    and i2o_block drivers are loaded.
    It seems that location of pci_request_regions() are wrong.
    I moved it just behind pci_enable_device() like other drivers,
    and it becomes fine.

    Signed-off-by: Ryoji Kamei
    Signed-off-by: James Bottomley

    Salyzyn, Mark
     

10 Jan, 2006

1 commit


09 Jan, 2006

1 commit

  • HDIO_GETGEO is implemented in most block drivers, and all of them have to
    duplicate the code to copy the structure to userspace, as well as getting
    the start sector. This patch moves that to common code [1] and adds a
    ->getgeo method to fill out the raw kernel hd_geometry structure. For many
    drivers this means ->ioctl can go away now.

    [1] the s390 block drivers are odd in this respect. xpram sets ->start
    to 4 always which seems more than odd, and the dasd driver shifts
    the start offset around, probably because of it's non-standard
    sector size.

    Signed-off-by: Christoph Hellwig
    Cc: Jens Axboe
    Cc:
    Cc: Jeff Dike
    Cc: Paolo Giarrusso
    Cc: Bartlomiej Zolnierkiewicz
    Cc: Neil Brown
    Cc: Markus Lidel
    Cc: Russell King
    Cc: David Woodhouse
    Cc: Martin Schwidefsky
    Cc: James Bottomley
    Signed-off-by: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     

07 Jan, 2006

8 commits


06 Jan, 2006

1 commit

  • add @uptodate argument to end_that_request_last() and @error
    to rq_end_io_fn(). there's no generic way to pass error code
    to request completion function, making generic error handling
    of non-fs request difficult (rq->errors is driver-specific and
    each driver uses it differently). this patch adds @uptodate
    to end_that_request_last() and @error to rq_end_io_fn().

    for fs requests, this doesn't really matter, so just using the
    same uptodate argument used in the last call to
    end_that_request_first() should suffice. imho, this can also
    help the generic command-carrying request jens is working on.

    Signed-off-by: tejun heo
    Signed-Off-By: Jens Axboe

    Tejun Heo
     

19 Dec, 2005

1 commit


28 Nov, 2005

1 commit


07 Nov, 2005

2 commits


31 Oct, 2005

2 commits

  • I recently picked up my older work to remove unnecessary #includes of
    sched.h, starting from a patch by Dave Jones to not include sched.h
    from module.h. This reduces the number of indirect includes of sched.h
    by ~300. Another ~400 pointless direct includes can be removed after
    this disentangling (patch to follow later).
    However, quite a few indirect includes need to be fixed up for this.

    In order to feed the patches through -mm with as little disturbance as
    possible, I've split out the fixes I accumulated up to now (complete for
    i386 and x86_64, more archs to follow later) and post them before the real
    patch. This way this large part of the patch is kept simple with only
    adding #includes, and all hunks are independent of each other. So if any
    hunk rejects or gets in the way of other patches, just drop it. My scripts
    will pick it up again in the next round.

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

    Tim Schmielau
     
  • Typo fix: dots appearing after a newline in printk strings.

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

    Jean Delvare
     

29 Oct, 2005

4 commits


22 Sep, 2005

1 commit


10 Aug, 2005

2 commits

  • Added pci_request_regions() before using the controller to avoid duplicate
    usage of the I2O controller when the dpt_i2o driver and I2O subsystem is
    loaded at the same time.

    Signed-off-by: Markus Lidel
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Markus Lidel
     
  • Remove new configuration API from i2o_config

    The API-patch is still available from the I2O website (which is mentioned in
    the kernel config now). It is removed because it creates a new binary
    sysfs-attribute, which doesn't have the limitiation of 4k. Expect for the
    Adaptec controllers, which has a limitation in the hardware this attribute
    doesn't make sense anywhere else. Until the sysfs API provides an attribute
    which doesn't buffer (like firmware) and let access to at least 64k blocks i
    provide a separate patch...

    (akpm: basically, this API was introduced post-2.6.12 and Markus wants to pull
    it out before 2.6.13).

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

    Markus Lidel
     

08 Jul, 2005

1 commit

  • Various stuff missing on alpha:

    drivers/message/i2o/config-osm.c:35: error: field `fops' has incomplete type
    drivers/message/i2o/config-osm.c: In function `sysfs_create_fops_file':
    drivers/message/i2o/config-osm.c:71: error: storage size of `tmp' isn't known
    drivers/message/i2o/config-osm.c:78: error: dereferencing pointer to incomplete type
    drivers/message/i2o/config-osm.c:81: error: dereferencing pointer to incomplete type

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

    Andrew Morton
     

24 Jun, 2005

6 commits

  • This patch updates all the device attribute callbacks that weren't
    updated with the new parameter, I guess because they weren't in Greg's
    tree (including drivers/pcmcia/ds.c). Without the patch these
    callbacks are probably broken (and generate a warning along the lines
    of "assignment from incompatible pointer type").

    Please see http://lkml.org/lkml/2005/5/19/40 for the scripts I used to
    update the attributes automatically.

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

    Yani Ioannou
     
  • LD .tmp_vmlinux1
    drivers/built-in.o: In function `i2o_cfg_parms':
    config-osm.c:(.text+0x12764a): undefined reference to `i2o_parm_issue'

    Cc: Markus Lidel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Set max sectors to 256 for Promise controllers.

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

    Markus Lidel
     
  • Lindent run and replaced printk() through the corresponding osm_*() function

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

    Markus Lidel
     
  • Changes:
    - Added header "core.h" for i2o_core.ko internal definitions
    - More sparse fixes
    - Changed display of TID's in sysfs attributes from XXX to 0xXXX
    - Use the right functions for accessing I/O and normal memory
    - Removed error handling of SCSI device errors and let the SCSI layer
    take care of it
    - Added new device / removed device handling to SCSI-OSM
    - Make status access volatile
    - Cleaned up activation of I2O controller
    - Removed unnecessary wmb() and rmb() calls
    - Use own struct i2o_io for I/O memory instead of struct i2o_dma

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

    Markus Lidel
     
  • Changes:
    - Provide SG_IO access to BLOCK and EXECUTIVE class on Adaptec
    controllers
    - Use PRIVATE messages in SCSI-OSM because on some controllers normal
    SCSI class commands like READ or READ CAPACITY cause errors
    - Use new DMA and SG list creation function
    - Added workaround to limit sectors per request for Adaptec 2400A
    controllers

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

    Markus Lidel