]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: make sqpoll wakeup possible with getevents
authorJens Axboe <axboe@kernel.dk>
Thu, 12 Sep 2019 20:19:16 +0000 (14:19 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Sep 2019 20:19:16 +0000 (14:19 -0600)
commit271ffcfaeb65f3722fa93760d675a043a1ecd4a6
tree9734fc58622cd72e9f7b85f64bf26592205c2ba9
parent7d9d0107e271711a4dc346c9a0fb6b5f89d6c836
io_uring: make sqpoll wakeup possible with getevents

The way the logic is setup in io_uring_enter() means that you can't wake
up the SQ poller thread while at the same time waiting (or polling) for
completions afterwards. There's no reason for that to be the case.

Reported-by: Lewis Baker <lbaker@fb.com>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c