mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-04 12:13:43 +00:00
d10f19dff5
Basic conversion ensuring async_data is allocated off the prep path. Adds a basic alloc cache as well, as passthrough IO can be quite high in rate. Tested-by: Anuj Gupta <anuj20.g@samsung.com> Reviewed-by: Anuj Gupta <anuj20.g@samsung.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
17 lines
499 B
C
17 lines
499 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
struct uring_cache {
|
|
union {
|
|
struct io_cache_entry cache;
|
|
struct io_uring_sqe sqes[2];
|
|
};
|
|
};
|
|
|
|
int io_uring_cmd(struct io_kiocb *req, unsigned int issue_flags);
|
|
int io_uring_cmd_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
|
|
int io_uring_cmd_prep_async(struct io_kiocb *req);
|
|
void io_uring_cache_free(struct io_cache_entry *entry);
|
|
|
|
bool io_uring_try_cancel_uring_cmd(struct io_ring_ctx *ctx,
|
|
struct task_struct *task, bool cancel_all);
|