Initialize b_iooffset before calling strategy

This commit is contained in:
Poul-Henning Kamp 2003-10-18 19:48:21 +00:00
parent 427823d576
commit 01758670e9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121223
2 changed files with 2 additions and 0 deletions

View File

@ -734,6 +734,7 @@ spec_getpages(ap)
KASSERT(bp->b_wcred == NOCRED, ("leaking write ucred"));
bp->b_rcred = crhold(curthread->td_ucred);
bp->b_wcred = crhold(curthread->td_ucred);
bp->b_iooffset = offset;
bp->b_blkno = blkno;
bp->b_lblkno = blkno;
pbgetvp(ap->a_vp, bp);

View File

@ -69,6 +69,7 @@ physio(dev_t dev, struct uio *uio, int ioflag)
bp->b_data = uio->uio_iov[i].iov_base;
bp->b_bcount = uio->uio_iov[i].iov_len;
bp->b_offset = uio->uio_offset;
bp->b_iooffset = uio->uio_offset;
bp->b_saveaddr = sa;
/* Don't exceed drivers iosize limit */