Skip to content

Commit 6f2b3c2

Browse files
isilenceaxboe
authored andcommitted
io_uring/zcrx: use correct mmap off constants
zcrx was using IORING_OFF_PBUF_SHIFT during first iterations, but there is now a separate constant it should use. Both are 16 so it doesn't change anything, but improve it for the future. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://patch.msgid.link/fe16ebe9ba4048a7e12f9b3b50880bd175b1ce03.1774780198.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 7a9ffcf commit 6f2b3c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

io_uring/zcrx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ static int io_allocate_rbuf_ring(struct io_ring_ctx *ctx,
386386
return -EINVAL;
387387

388388
mmap_offset = IORING_MAP_OFF_ZCRX_REGION;
389-
mmap_offset += (u64)id << IORING_OFF_PBUF_SHIFT;
389+
mmap_offset += (u64)id << IORING_OFF_ZCRX_SHIFT;
390390

391391
ret = io_create_region(ctx, &ifq->rq_region, rd, mmap_offset);
392392
if (ret < 0)

0 commit comments

Comments
 (0)