mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
We need to initialize bp->b_offset and bp->b_iooffset
becuase bp->b_blkno is ignored now.
This commit is contained in:
parent
1d2d5501f9
commit
a44ca4f05f
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue