Commit c081099
io_uring: allow O_NONBLOCK async retry
to #28736503
commit c5b8562 upstream
We can assume that O_NONBLOCK is always honored, even if we don't
have a ->read/write_iter() for the file type. Also unify the read/write
checking for allowing async punt, having the write side factoring in the
REQ_F_NOWAIT flag as well.
Cc: stable@vger.kernel.org
Fixes: 490e896 ("io_uring: only force async punt if poll based retry can't handle it")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
Acked-by: Joseph Qi <joseph.qi@linux.alibaba.com>1 parent c349b38 commit c081099
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2052 | 2052 | | |
2053 | 2053 | | |
2054 | 2054 | | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
2055 | 2059 | | |
2056 | 2060 | | |
2057 | 2061 | | |
| |||
2094 | 2098 | | |
2095 | 2099 | | |
2096 | 2100 | | |
2097 | | - | |
2098 | | - | |
| 2101 | + | |
2099 | 2102 | | |
2100 | 2103 | | |
2101 | 2104 | | |
| |||
2736 | 2739 | | |
2737 | 2740 | | |
2738 | 2741 | | |
2739 | | - | |
| 2742 | + | |
| 2743 | + | |
2740 | 2744 | | |
2741 | 2745 | | |
2742 | 2746 | | |
| |||
0 commit comments