diff options
author | Ed L. Cashin <ecashin@coraid.com> | 2006-09-20 20:36:50 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-10-18 21:53:50 +0200 |
commit | 392e4845f9728114f7ffa8d7612683397fd4d441 (patch) | |
tree | fb86e5b7f2a066c9e9458619b746a015e4d2dbe4 /drivers/block/aoe/aoecmd.c | |
parent | aoe: module parameter for device timeout (diff) | |
download | linux-392e4845f9728114f7ffa8d7612683397fd4d441.tar.xz linux-392e4845f9728114f7ffa8d7612683397fd4d441.zip |
aoe: use bio->bi_idx
Instead of starting with bio->bi_io_vec, use the offset in bio->bi_idx.
Signed-off-by: "Ed L. Cashin" <ecashin@coraid.com>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to '')
-rw-r--r-- | drivers/block/aoe/aoecmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c index f2b8f558e1bb..2d0bcdd96698 100644 --- a/drivers/block/aoe/aoecmd.c +++ b/drivers/block/aoe/aoecmd.c @@ -166,6 +166,7 @@ aoecmd_ata_rw(struct aoedev *d, struct frame *f) d->inprocess = NULL; } else if (buf->bv_resid == 0) { buf->bv++; + WARN_ON(buf->bv->bv_len == 0); buf->bv_resid = buf->bv->bv_len; buf->bufaddr = page_address(buf->bv->bv_page) + buf->bv->bv_offset; } |