io_uring: consolidate hash_locked io-wq handling
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 7 Jul 2022 14:13:17 +0000 (15:13 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jul 2022 00:39:17 +0000 (18:39 -0600)
commite8375e43ca2d67f31b2408092eee4f91e1e140f4
tree366ecb0bfbd0c068d73620267699b6dc96ec2212
parentb21a51e26e9aed66159c2c18651da22d585d2998
io_uring: consolidate hash_locked io-wq handling

Don't duplicate code disabling REQ_F_HASH_LOCKED for IO_URING_F_UNLOCKED
(i.e. io-wq), move the handling into __io_arm_poll_handler().

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