21 Oct, 2008
2 commits
-
Signed-off-by: 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
07 Oct, 2008
1 commit
-
The variable statindex in send_request is never read, so remove it.
Signed-off-by: Johann Felix Soden
Signed-off-by: Benjamin Herrenschmidt
23 May, 2008
1 commit
-
I don't use my IBM email address normally and people can find me in
CREDITS.Signed-off-by: Stephen Rothwell
Signed-off-by: Paul Mackerras
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
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
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
23 Oct, 2007
1 commit
-
Signed-off-by: Jens Axboe
11 Oct, 2007
1 commit
-
This way we only have entries in the device tree for disks that actually
exist. A slight complication is that disks may be attached to LPARs
at runtime.Signed-off-by: Stephen Rothwell
Acked-by: Jens Axboe
Signed-off-by: Paul Mackerras
12 Aug, 2007
1 commit
-
This patch cleans up duplicate includes in
drivers/block/Signed-off-by: Jesper Juhl
Acked-by: Stephen Rothwell
Cc: Satyam Sharma
Signed-off-by: Andrew Morton
Signed-off-by: Jens Axboe
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
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
20 Dec, 2006
1 commit
-
Don't initialise viodasd except on legacy iSeries.
Signed-off-by: Stephen Rothwell
Signed-off-by: Paul Mackerras
04 Dec, 2006
1 commit
-
On error, make sure that we undo all necessary operations.
This also gets rid of a must_check warning.
Signed-off-by: Stephen Rothwell
Signed-off-by: Paul Mackerras
27 Jun, 2006
2 commits
-
Just removes a few unused #defines and fixes some comments due to
devfs now being gone.Signed-off-by: Greg Kroah-Hartman
-
And remove the now unneeded number field.
Also fixes all drivers that set these fields.Signed-off-by: Greg Kroah-Hartman
19 May, 2006
1 commit
-
These devices should have device_type block and a unique compatible entry.
Signed-off-by: Stephen Rothwell
Signed-off-by: Paul Mackerras
12 Jan, 2006
1 commit
-
Signed-off-by: Stephen Rothwell
Signed-off-by: Paul Mackerras
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
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
02 Nov, 2005
4 commits
-
Signed-off-by: Kelly Daly
-
Signed-off-by: Kelly Daly
-
Signed-off-by: Kelly Daly
-
Signed-off-by: Kelly Daly
24 Oct, 2005
2 commits
-
Signed-off-by: Stephen Rothwell
-
Just set the name field directly in the device_driver structure
contained in the vio_driver struct.Signed-off-by: Stephen Rothwell
30 Aug, 2005
1 commit
-
Make MODULE_DEVICE_TABLE work for vio devices.
Signed-off-by: Stephen Rothwell
Signed-off-by: Paul Mackerras
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!