21 Oct, 2008

2 commits

  • Signed-off-by: Al Viro

    Al Viro
     
  • To keep the size of changesets sane we split the switch by drivers;
    to keep the damn thing bisectable we do the following:
    1) rename the affected methods, add ones with correct
    prototypes, make (few) callers handle both. That's this changeset.
    2) for each driver convert to new methods. *ALL* drivers
    are converted in this series.
    3) kill the old (renamed) methods.

    Note that it _is_ a flagday; all in-tree drivers are converted and by the
    end of this series no trace of old methods remain. The only reason why
    we do that this way is to keep the damn thing bisectable and allow per-driver
    debugging if anything goes wrong.

    New methods:
    open(bdev, mode)
    release(disk, mode)
    ioctl(bdev, mode, cmd, arg) /* Called without BKL */
    compat_ioctl(bdev, mode, cmd, arg)
    locked_ioctl(bdev, mode, cmd, arg) /* Called with BKL, legacy */

    Signed-off-by: Al Viro

    Al Viro
     

07 Oct, 2008

1 commit


23 May, 2008

1 commit


01 Apr, 2008

1 commit

  • Robert P.J. Day proposed to use the macro FIELD_SIZEOF in replace of code
    that matches its definition.

    The modification was made using the following semantic patch
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @haskernel@
    @@

    #include

    @depends on haskernel@
    type t;
    identifier f;
    @@

    - (sizeof(((t*)0)->f))
    + FIELD_SIZEOF(t, f)

    @depends on haskernel@
    type t;
    identifier f;
    @@

    - sizeof(((t*)0)->f)
    + FIELD_SIZEOF(t, f)
    //

    Signed-off-by: Julia Lawall
    Cc: Jens Axboe
    Cc: Benjamin Herrenschmidt
    Acked-by: Stephen Rothwell
    Signed-off-by: Andrew Morton
    Signed-off-by: Paul Mackerras

    Julia Lawall
     

13 Mar, 2008

1 commit

  • The iSeries viodasd drivers does some very strange things with
    scatterlists, one of these causing a BUG_ON to trigger when
    scatterlist debugging is enabled due to initializing the
    scatterlist with memset instead of sg_init_table().

    This fixes it by using sg_init_table(). The rest of the stuff
    it does to that poor list is still pretty awful but it will work.

    I may look into fixing things in a nicer way some other time.

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Paul Mackerras

    Benjamin Herrenschmidt
     

28 Jan, 2008

1 commit

  • This patch converts viodasd to use blk_end_request interfaces.
    Related 'uptodate' arguments are converted to 'error'.

    As a result, the interface of internal function, viodasd_end_request(),
    is changed.

    Cc: Stephen Rothwell
    Signed-off-by: Kiyoshi Ueda
    Signed-off-by: Jun'ichi Nomura
    Signed-off-by: Jens Axboe

    Kiyoshi Ueda
     

23 Oct, 2007

1 commit


11 Oct, 2007

1 commit


12 Aug, 2007

1 commit


24 Jul, 2007

1 commit

  • Some of the code has been gradually transitioned to using the proper
    struct request_queue, but there's lots left. So do a full sweet of
    the kernel and get rid of this typedef and replace its uses with
    the proper type.

    Signed-off-by: Jens Axboe

    Jens Axboe
     

10 Jul, 2007

1 commit

  • Commit a885c8c4316e1c1d2d2c8755da3f3d14f852528d that introduced the
    getgeo block device method changed the fallback number of sectors and
    introduced a bug into the fallback cylinder number calculation.

    Thanks to Rusty Russell for noticing this.

    Signed-off-by: Stephen Rothwell
    Signed-off-by: Paul Mackerras

    Stephen Rothwell
     

20 Dec, 2006

1 commit


04 Dec, 2006

1 commit


27 Jun, 2006

2 commits


19 May, 2006

1 commit


12 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
     

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
     

02 Nov, 2005

4 commits


24 Oct, 2005

2 commits


30 Aug, 2005

1 commit


17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds