diff --git a/fs/io_uring.c b/fs/io_uring.c
index 1949b80677e7924411d28b476a318b17517a482a..a4a944da95a0e0a15460c8304a84ee56c591ec9e 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -9002,6 +9002,8 @@ void __io_uring_task_cancel(void)
 
 	/* make sure overflow events are dropped */
 	atomic_inc(&tctx->in_idle);
+	__io_uring_files_cancel(NULL);
+
 	do {
 		/* read completions before cancelations */
 		inflight = tctx_inflight(tctx);