diff --git a/fs/io_uring.c b/fs/io_uring.c index 040d1aafc968c1c3f7cefd1063afd01d0c5d5146..5a88260a8dd813257d636a0232eeaa6fc46597f9 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -4263,12 +4263,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);