Function io_ring_ctx_wait_and_kill use io_iopoll_reap_events to reap events, No need to do it again in the io_ring_ctx_free function. Signed-off-by: Jackie Liu <liuyun01@xxxxxxxxxx> --- fs/io_uring.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index 4430429..3bbd202 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2771,7 +2771,6 @@ static void io_ring_ctx_free(struct io_ring_ctx *ctx) if (ctx->sqo_mm) mmdrop(ctx->sqo_mm); - io_iopoll_reap_events(ctx); io_sqe_buffer_unregister(ctx); io_sqe_files_unregister(ctx); io_eventfd_unregister(ctx); -- 2.7.4