io_uring: handle -EOPNOTSUPP on path resolution
authorJens Axboe <axboe@kernel.dk>
Fri, 13 Nov 2020 23:48:44 +0000 (16:48 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 14 Nov 2020 17:22:30 +0000 (10:22 -0700)
commit944d1444d53f5a213457e5096db370cfd06923d4
tree3fcded51bd23c96fa0499124b8079dee6ef15be1
parent8d4c3e76e3be11a64df95ddee52e99092d42fc19
io_uring: handle -EOPNOTSUPP on path resolution

Any attempt to do path resolution on /proc/self from an async worker will
yield -EOPNOTSUPP. We can safely do that resolution from the task itself,
and without blocking, so retry it from there.

Ideally io_uring would know this upfront and not have to go through the
worker thread to find out, but that doesn't currently seem feasible.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c