Due to an oversight on my part, AT_FDCWD lookups only work when the lookup can be done inline, not async. This patchset rectifies that, aiming for 5.6 for this one as it would be a shame to have openat etc without that. Just 3 small simple patches - grab the task ->fs, add io-wq suppor for passing it in and setting it, and finally add a ->needs_fs to the opcode table list of requirements for openat/openat2/statx. Last patch just ensures we allow AT_FDCWD. fs/io-wq.c | 19 +++++++++++++++---- fs/io-wq.h | 4 +++- fs/io_uring.c | 29 ++++++++++++++++++++++++++++- 3 files changed, 46 insertions(+), 6 deletions(-) -- Jens Axboe