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)
commitb2a9eadab85730935f5a6fe19f3f61faaaced601
tree9734fc58622cd72e9f7b85f64bf26592205c2ba9
parent6d5d5ac522b20b65167dafe0656b7cad05ec48b3
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