io_uring: remove notif leftovers
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 4 Oct 2022 02:19:25 +0000 (03:19 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 12 Oct 2022 22:30:56 +0000 (16:30 -0600)
Notifications were killed but there is a couple of fields and struct
declarations left, remove them.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/8df8877d677be5a2b43afd936d600e60105ea960.1664849941.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/io_uring_types.h
io_uring/io_uring.c

index aa4d90a..f5b687a 100644 (file)
@@ -34,9 +34,6 @@ struct io_file_table {
        unsigned int alloc_hint;
 };
 
-struct io_notif;
-struct io_notif_slot;
-
 struct io_hash_bucket {
        spinlock_t              lock;
        struct hlist_head       list;
@@ -242,8 +239,6 @@ struct io_ring_ctx {
                unsigned                nr_user_files;
                unsigned                nr_user_bufs;
                struct io_mapped_ubuf   **user_bufs;
-               struct io_notif_slot    *notif_slots;
-               unsigned                nr_notif_slots;
 
                struct io_submit_state  submit_state;
 
index ea5cee5..b12ec6b 100644 (file)
@@ -2625,7 +2625,6 @@ static __cold void io_ring_ctx_free(struct io_ring_ctx *ctx)
        }
 #endif
        WARN_ON_ONCE(!list_empty(&ctx->ltimeout_list));
-       WARN_ON_ONCE(ctx->notif_slots || ctx->nr_notif_slots);
 
        if (ctx->mm_account) {
                mmdrop(ctx->mm_account);