OSDN Git Service

io_uring: move SQPOLL post-wakeup ring need wakeup flag into wake handler
authorJens Axboe <axboe@kernel.dk>
Wed, 2 Sep 2020 18:42:47 +0000 (12:42 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Oct 2020 02:32:33 +0000 (20:32 -0600)
commit3f0e64d054114b725569c2481bbc6a8eb538bf15
treeec5ff98414c26862be0aba07a25d389f4c00fcd9
parent6a7793828fb21c1e0c119d98c2f898d8f83c8a8b
io_uring: move SQPOLL post-wakeup ring need wakeup flag into wake handler

We need to decouple the clearing on wakeup from the the inline schedule,
as that is going to be required for handling multiple rings in one
thread.

Wrap our wakeup handler so we can clear it when we get the wakeup, by
definition that is when we no longer need the flag set.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c