io_uring: fix mshot io-wq checks
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 8 Mar 2024 13:55:56 +0000 (13:55 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Mar 2024 14:58:23 +0000 (07:58 -0700)
commit3a96378e22cc46c7c49b5911f6c8631527a133a9
treec7bfba6010f9a36312ac72ea63c321a5ac989242
parentd9b441889c3595aa18f89ee42c6d22bb62234343
io_uring: fix mshot io-wq checks

When checking for concurrent CQE posting, we're not only interested in
requests running from the poll handler but also strayed requests ended
up in normal io-wq execution. We're disallowing multishots in general
from io-wq, not only when they came in a certain way.

Cc: stable@vger.kernel.org
Fixes: 17add5cea2bba ("io_uring: force multishot CQEs into task context")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/d8c5b36a39258036f93301cd60d3cd295e40653d.1709905727.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c