commit | 724cb4f9ec905173f32c5bd08fec26abaecc6a1d | [log] [tgz] |
---|---|---|
author | Hao Xu <haoxu@linux.alibaba.com> | Wed Apr 21 23:19:11 2021 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Apr 23 08:26:41 2021 -0600 |
tree | 3f45081913cc810132a9b2596a0af98b87d957a3 | |
parent | f2a48dd09b8e933f59570692e1382b81d4fddc49 [diff] |
io_uring: check sqring and iopoll_list before shedule do this to avoid race below: userspace kernel | check sqring and iopoll_list submit sqe | check IORING_SQ_NEED_WAKEUP | (which is not set) | | | set IORING_SQ_NEED_WAKEUP wait cqe | schedule(never wakeup again) Signed-off-by: Hao Xu <haoxu@linux.alibaba.com> Link: https://lore.kernel.org/r/1619018351-75883-1-git-send-email-haoxu@linux.alibaba.com Signed-off-by: Jens Axboe <axboe@kernel.dk>