io_uring: switch cancel_hash to use per entry spinlock
[linux-block.git] / io_uring / cancel.h
CommitLineData
7aaff708
JA
1// SPDX-License-Identifier: GPL-2.0
2
3int io_async_cancel_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
4int io_async_cancel(struct io_kiocb *req, unsigned int issue_flags);
5
6int io_try_cancel(struct io_kiocb *req, struct io_cancel_data *cd);
38513c46
HX
7void init_hash_table(struct io_hash_bucket *hash_table, unsigned size);
8
9struct io_hash_bucket {
10 spinlock_t lock;
11 struct hlist_head list;
12} ____cacheline_aligned_in_smp;