diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2025-05-09 14:12:53 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-05-09 17:01:02 +0300 |
| commit | 63de899cb6220357dea9d0f4e5aa459ff5193bb0 (patch) | |
| tree | 5a1e97f68cff6242ef489e989df1443a4b333498 /include | |
| parent | b0c8a6401fbca91da4fe0dc10d61a770f1581e45 (diff) | |
| download | linux-63de899cb6220357dea9d0f4e5aa459ff5193bb0.tar.xz | |
io_uring: count allocated requests
Keep track of the number requests a ring currently has allocated (and
not freed), it'll be needed in the next patch.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/c8f8308294dc2a1cb8925d984d937d4fc14ab5d4.1746788718.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/io_uring_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/io_uring_types.h b/include/linux/io_uring_types.h index 7e23e993280e..73b289b48280 100644 --- a/include/linux/io_uring_types.h +++ b/include/linux/io_uring_types.h @@ -435,6 +435,7 @@ struct io_ring_ctx { /* protected by ->completion_lock */ unsigned evfd_last_cq_tail; + unsigned nr_req_allocated; /* * Protection for resize vs mmap races - both the mmap and resize |
