diff --git a/fs/io_uring.c b/fs/io_uring.c index d3df300982411e740d92cf3b5420b50e2d67002f..a9b4559b4ab3b6830b84e8f8c5ef0f9bbb02faad 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -4215,12 +4215,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);