Re: [PATCH] io_uring/openclose: allow an empty path with O_EMPTYPATH
From: Jens Axboe
Date: Wed Nov 25 2026 - 13:46:55 EST
On Wed, 25 Nov 2026 13:08:17 -0500, Hengyu Liang wrote:
> Commit 31cf44efa6df ("vfs: add O_EMPTYPATH to openat(2)/openat2(2)")
> made build_open_flags() accept O_EMPTYPATH and turn it into
> LOOKUP_EMPTY, so that openat(fd, "", O_EMPTYPATH) reopens the file
> behind fd.
>
> However, io_uring also uses build_open_flags(), but __io_openat_prep()
> still copies the name with delayed_getname(), which rejects an empty
> name with -ENOENT. As of now, IORING_OP_OPENAT and IORING_OP_OPENAT2
> accept O_EMPTYPATH, but fail on the empty path this flag is meant for.
>
> [...]
Applied, thanks!
[1/1] io_uring/openclose: allow an empty path with O_EMPTYPATH
commit: 15ca993634424898cc0c055ef84dfbe29ae0370c
Best regards,
--
Jens Axboe