io_uring: add a warn_once for poll_find
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 20 Jun 2022 00:26:01 +0000 (01:26 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:44:29 +0000 (08:44 -0600)
commit4916f55c4a594887d32ee28d109f56cf433d16cc
treee5fae8ae76e226946f0ae3c363565dba3cbf09e9
parent8312cc0e08683d71bc077e676008bd1e73ccf276
io_uring: add a warn_once for poll_find

io_poll_remove() expects poll_find() to search only for poll requests and
passes a flag for this. Just be a little bit extra cautious considering
lots of recent poll/cancellation changes and add a WARN_ON_ONCE checking
that we don't get an apoll'ed request.

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