io_uring: merge CQ and poll waitqueues
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 4 Oct 2021 19:02:52 +0000 (20:02 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:54 +0000 (05:49 -0600)
commitd60aa65ba221f038404b98d8484f562f72bb807b
treecb0eaec9f96944a7ff98f5c3cd3c3937303040ca
parentaede728aae355d4c1d38dd02747d415af011eea7
io_uring: merge CQ and poll waitqueues

->cq_wait and ->poll_wait and waken up in the same manner, use a single
waitqueue for both of them. CQ waiters are queued exclusively, so wake
up should first go over all pollers and that's what we need.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/00fe603e50000365774cf8435ef5fe03f049c1c9.1633373302.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c