forked from Minki/linux
ad163a7e25
Commit 3a3d47fa9cfd ("io_uring: make io_uring_types.h public") moved a bunch of io_uring types to a kernel wide header, so we could make tracing a bit saner rather than pass in a ton of arguments. However, there are a few types in there that are not really needed to be system wide. Move the cancel data and mapped buffers back to the appropriate io_uring local headers. Signed-off-by: Jens Axboe <axboe@kernel.dk>
22 lines
509 B
C
22 lines
509 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/io_uring_types.h>
|
|
|
|
struct io_cancel_data {
|
|
struct io_ring_ctx *ctx;
|
|
union {
|
|
u64 data;
|
|
struct file *file;
|
|
};
|
|
u32 flags;
|
|
int seq;
|
|
};
|
|
|
|
|
|
int io_async_cancel_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
|
|
int io_async_cancel(struct io_kiocb *req, unsigned int issue_flags);
|
|
|
|
int io_try_cancel(struct io_kiocb *req, struct io_cancel_data *cd,
|
|
unsigned int issue_flags);
|
|
void init_hash_table(struct io_hash_table *table, unsigned size);
|