diff --git a/fs/io_uring.c b/fs/io_uring.c
index 7ae8ba98e73b3204b9c66230dfd86e3e735cf29b..8a96b7df4112c1c40175557e76e6923910e9056f 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -3836,12 +3836,8 @@ static int io_statx(struct io_kiocb *req, bool force_nonblock)
 	struct io_statx *ctx = &req->statx;
 	int ret;
 
-	if (force_nonblock) {
-		/* only need file table for an actual valid fd */
-		if (ctx->dfd == -1 || ctx->dfd == AT_FDCWD)
-			req->flags |= REQ_F_NO_FILE_TABLE;
+	if (force_nonblock)
 		return -EAGAIN;
-	}
 
 	ret = do_statx(ctx->dfd, ctx->filename, ctx->flags, ctx->mask,
 		       ctx->buffer);