diff options
author | simokawa <simokawa@FreeBSD.org> | 2003-10-21 13:18:19 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2003-10-21 13:18:19 +0000 |
commit | aeab60718e4b445ea92321b766c94f5018e98ae7 (patch) | |
tree | f62c1697e22c375019f44f25de3bed3a341b91aa /sys/kern | |
parent | 39d285839326931233653586fe8b30d9d4223bf2 (diff) | |
download | FreeBSD-src-aeab60718e4b445ea92321b766c94f5018e98ae7.zip FreeBSD-src-aeab60718e4b445ea92321b766c94f5018e98ae7.tar.gz |
We need to initialize bp->b_offset and bp->b_iooffset
becuase bp->b_blkno is ignored now.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_aio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index f5dfcfc..b746f47 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -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; |