We need to initialize bp->b_offset and bp->b_iooffset

becuase bp->b_blkno is ignored now.
This commit is contained in:
Hidetoshi Shimokawa 2003-10-21 13:18:19 +00:00
parent 1d2d5501f9
commit a44ca4f05f

View File

@ -1106,6 +1106,8 @@ aio_qphysio(struct proc *p, struct aiocblist *aiocbe)
bp->b_iodone = aio_physwakeup;
bp->b_saveaddr = bp->b_data;
bp->b_data = (void *)(uintptr_t)cb->aio_buf;
bp->b_offset = cb->aio_offset;
bp->b_iooffset = cb->aio_offset;
bp->b_blkno = btodb(cb->aio_offset);
bp->b_iocmd = cb->aio_lio_opcode == LIO_WRITE ? BIO_WRITE : BIO_READ;