Fix 32 bit io regression

In commit ba1dbafc1f I reverted 9942fc82d4, which was a workaround
for an upstream 32bit libaio bug. Oops.

Signed-off-by: Brett Holman <bholman.devel@gmail.com>
This commit is contained in:
Brett Holman 2021-10-16 18:28:49 -06:00
parent 76821f0760
commit 2de72a59e0

View File

@ -368,9 +368,9 @@ static void aio_op(struct bio *bio, struct iovec *iov, unsigned i, int opcode)
? bio->bi_bdev->bd_sync_fd
: bio->bi_bdev->bd_fd,
.aio_lio_opcode = opcode,
.u.v.vec = iov,
.u.v.nr = i,
.u.v.offset = bio->bi_iter.bi_sector << 9,
.u.c.buf = iov,
.u.c.nbytes = i,
.u.c.offset = bio->bi_iter.bi_sector << 9,
}, *iocbp = &iocb;