aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vinum/vinumrequest.c
diff options
context:
space:
mode:
authorGreg Lehey <grog@FreeBSD.org>2003-11-24 04:06:56 +0000
committerGreg Lehey <grog@FreeBSD.org>2003-11-24 04:06:56 +0000
commit76ffeff6bd3e0d1632dc0d4c4508d22021e7c22c (patch)
tree497a86dff71ee5881ee28864e42d2a2bd5b650c0 /sys/dev/vinum/vinumrequest.c
parent6714d7c75165129bf673d8329524afdb0c53c8fb (diff)
downloadsrc-76ffeff6bd3e0d1632dc0d4c4508d22021e7c22c.tar.gz
src-76ffeff6bd3e0d1632dc0d4c4508d22021e7c22c.zip
Initalize buffer headers correctly for current version of bio subsystem.
Not mentioned by: phk Approved by: re (scottl) This makes Vinum work again, at least in my testing.
Notes
Notes: svn path=/head/; revision=122972
Diffstat (limited to 'sys/dev/vinum/vinumrequest.c')
-rw-r--r--sys/dev/vinum/vinumrequest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/vinum/vinumrequest.c b/sys/dev/vinum/vinumrequest.c
index 9a0320693a5f..007411aa0459 100644
--- a/sys/dev/vinum/vinumrequest.c
+++ b/sys/dev/vinum/vinumrequest.c
@@ -448,6 +448,7 @@ launch_requests(struct request *rq, int reviveok)
#endif
/* fire off the request */
rqe->b.b_offset = rqe->b.b_blkno << DEV_BSHIFT;
+ rqe->b.b_iooffset = rqe->b.b_offset;
DEV_STRATEGY(&rqe->b);
}
}
@@ -993,6 +994,7 @@ sdio(struct buf *bp)
logrq(loginfo_sdiol, (union rqinfou) &sbp->b, &sbp->b);
#endif
sbp->b.b_offset = sbp->b.b_blkno << DEV_BSHIFT;
+ sbp->b.b_iooffset = sbp->b.b_offset;
DEV_STRATEGY(&sbp->b);
splx(s);
}