diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2025-09-16 15:27:55 +0100 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-09-16 12:37:20 -0600 |
| commit | d8d135dfe3e8e306d9edfcccf28dbe75c6a85567 (patch) | |
| tree | 676ae3cecf2772ae0ef4327a1f014e282475b30f /io_uring/zcrx.h | |
| parent | 5d93f7bade0b1eb60d0f395ad72b35581d28a896 (diff) | |
io_uring/zcrx: make niov size variable
Instead of using PAGE_SIZE for the niov size add a niov_shift field to
ifq, and patch up all important places. Copy fallback still assumes
PAGE_SIZE, so it'll be wasting some memory for now.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/zcrx.h')
| -rw-r--r-- | io_uring/zcrx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/io_uring/zcrx.h b/io_uring/zcrx.h index 27d7cf28a04e..7604f1f85ccb 100644 --- a/io_uring/zcrx.h +++ b/io_uring/zcrx.h @@ -41,6 +41,7 @@ struct io_zcrx_area { struct io_zcrx_ifq { struct io_ring_ctx *ctx; struct io_zcrx_area *area; + unsigned niov_shift; spinlock_t rq_lock ____cacheline_aligned_in_smp; struct io_uring *rq_ring; |
