diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2026-03-23 15:43:55 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-04-01 19:21:12 +0300 |
| commit | ebae09bce495a0bfbf177f1972411c9a99dfcf07 (patch) | |
| tree | a7d97f888f1de7e75ff5ea09b2aae5e146b694e8 | |
| parent | 825f2764919fca61a88ab2f93dfdfd1d22566264 (diff) | |
| download | linux-ebae09bce495a0bfbf177f1972411c9a99dfcf07.tar.xz | |
io_uring/zcrx: use better name for RQ region
Rename "region" to "rq_region" to highlight that it's a refill queue
region.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://patch.msgid.link/ac815790d2477a15826aecaa3d94f2a94ef507e6.1774261953.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
| -rw-r--r-- | io_uring/zcrx.c | 8 | ||||
| -rw-r--r-- | io_uring/zcrx.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c index c753f88b6575..e58087073cd5 100644 --- a/io_uring/zcrx.c +++ b/io_uring/zcrx.c @@ -384,11 +384,11 @@ static int io_allocate_rbuf_ring(struct io_ring_ctx *ctx, mmap_offset = IORING_MAP_OFF_ZCRX_REGION; mmap_offset += id << IORING_OFF_PBUF_SHIFT; - ret = io_create_region(ctx, &ifq->region, rd, mmap_offset); + ret = io_create_region(ctx, &ifq->rq_region, rd, mmap_offset); if (ret < 0) return ret; - ptr = io_region_get_ptr(&ifq->region); + ptr = io_region_get_ptr(&ifq->rq_region); ifq->rq_ring = (struct io_uring *)ptr; ifq->rqes = (struct io_uring_zcrx_rqe *)(ptr + off); @@ -397,7 +397,7 @@ static int io_allocate_rbuf_ring(struct io_ring_ctx *ctx, static void io_free_rbuf_ring(struct io_zcrx_ifq *ifq) { - io_free_region(ifq->user, &ifq->region); + io_free_region(ifq->user, &ifq->rq_region); ifq->rq_ring = NULL; ifq->rqes = NULL; } @@ -645,7 +645,7 @@ struct io_mapped_region *io_zcrx_get_region(struct io_ring_ctx *ctx, lockdep_assert_held(&ctx->mmap_lock); - return ifq ? &ifq->region : NULL; + return ifq ? &ifq->rq_region : NULL; } static int zcrx_box_release(struct inode *inode, struct file *file) diff --git a/io_uring/zcrx.h b/io_uring/zcrx.h index f395656c3160..3b2681a1fafd 100644 --- a/io_uring/zcrx.h +++ b/io_uring/zcrx.h @@ -66,7 +66,7 @@ struct io_zcrx_ifq { * net stack. */ struct mutex pp_lock; - struct io_mapped_region region; + struct io_mapped_region rq_region; }; #if defined(CONFIG_IO_URING_ZCRX) |
