diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2026-03-23 12:43:58 +0000 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-04-01 10:21:12 -0600 |
| commit | 7df542a6657534694779948195cc4d36ace575b5 (patch) | |
| tree | 6a2106237e9770d5838b728b347b46a3beeb5519 /rust/kernel/interop/git@git.tavy.me:linux-stable.git | |
| parent | 898ad80d1207cbdb22b21bafb6de4adfd7627bd0 (diff) | |
io_uring/zcrx: move count check into zcrx_get_free_niov
Instead of relying on the caller of __io_zcrx_get_free_niov() to check
that there are free niovs available (i.e. free_count > 0), move the
check into the function and return NULL if can't allocate. It
consolidates the free count checks, and it'll be easier to extend the
niov free list allocator in the future.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://patch.msgid.link/6df04a6b3a6170f86d4345da9864f238311163f9.1774261953.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
