diff --git a/fs/io_uring.c b/fs/io_uring.c
index 12a213b147c0c3ad94144735fd2d30d993ae4bbf..baff81313f54fa169d77ff3f68e9df3567210cf4 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -1563,11 +1563,7 @@ static bool io_task_match(struct io_kiocb *req, struct task_struct *tsk)
 
 	if (!tsk || req->task == tsk)
 		return true;
-	if (ctx->flags & IORING_SETUP_SQPOLL) {
-		if (ctx->sq_data && req->task == ctx->sq_data->thread)
-			return true;
-	}
-	return false;
+	return (ctx->flags & IORING_SETUP_SQPOLL);
 }
 
 /*