diff --git a/fs/io_uring.c b/fs/io_uring.c index 9663752b886453bdb2caf8978571af67500ae4a7..d6cee26ad0c9e3d21b9f9a3fb22c9cd60f52248c 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -4210,12 +4210,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);