Commit 944d144
committed
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>1 parent 8d4c3e7 commit 944d144
1 file changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
| 481 | + | |
481 | 482 | | |
482 | 483 | | |
483 | 484 | | |
| |||
3796 | 3797 | | |
3797 | 3798 | | |
3798 | 3799 | | |
| 3800 | + | |
3799 | 3801 | | |
3800 | 3802 | | |
3801 | 3803 | | |
| |||
3839 | 3841 | | |
3840 | 3842 | | |
3841 | 3843 | | |
3842 | | - | |
| 3844 | + | |
3843 | 3845 | | |
3844 | 3846 | | |
3845 | 3847 | | |
| |||
3854 | 3856 | | |
3855 | 3857 | | |
3856 | 3858 | | |
| 3859 | + | |
| 3860 | + | |
| 3861 | + | |
| 3862 | + | |
| 3863 | + | |
| 3864 | + | |
| 3865 | + | |
| 3866 | + | |
| 3867 | + | |
| 3868 | + | |
| 3869 | + | |
| 3870 | + | |
| 3871 | + | |
| 3872 | + | |
| 3873 | + | |
3857 | 3874 | | |
3858 | 3875 | | |
3859 | 3876 | | |
| |||
0 commit comments