io-wq: Move wq accounting to io_wq
[platform/kernel/linux-starfive.git] / io_uring / rsrc.c
index e2bac9f..7a43aed 100644 (file)
@@ -794,6 +794,7 @@ void __io_sqe_files_unregister(struct io_ring_ctx *ctx)
        }
 #endif
        io_free_file_tables(&ctx->file_table);
+       io_file_table_set_alloc_range(ctx, 0, 0);
        io_rsrc_data_free(ctx->file_data);
        ctx->file_data = NULL;
        ctx->nr_user_files = 0;