io_uring: kill io_wq_current_is_worker() in iopoll
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 15 Oct 2021 16:09:12 +0000 (17:09 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:55 +0000 (05:49 -0600)
commit9882131cd9de525d484de117644e5008c6557ac7
tree8b902518c93992fca79798ef59ac70f3b43541ec
parent9983028e7660a2cc5e58403d8ce29569dbf3162d
io_uring: kill io_wq_current_is_worker() in iopoll

Don't decide about locking based on io_wq_current_is_worker(), it's not
consistent with all other code and is expensive, use issue_flags.

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