]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix missing set of EPOLLONESHOT for CQ ring overflow
authorHao Xu <haoxu@linux.alibaba.com>
Wed, 22 Sep 2021 10:12:37 +0000 (18:12 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Sep 2021 16:24:34 +0000 (10:24 -0600)
commit4df854e48d380bc446d474a4cc982ec74464c69c
treed811877c89c57d09ae0df8ed0f92939d559bde74
parent15810775ed3ddff8786d8c5d231b9b6eaeb533f4
io_uring: fix missing set of EPOLLONESHOT for CQ ring overflow

We should set EPOLLONESHOT if cqring_fill_event() returns false since
io_poll_add() decides to put req or not by it.

Fixes: 63417da8395c ("io_uring: terminate multishot poll for CQ ring overflow")
Signed-off-by: Hao Xu <haoxu@linux.alibaba.com>
Link: https://lore.kernel.org/r/20210922101238.7177-3-haoxu@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c