io_uring: refactor io_run_task_work()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 21 Apr 2022 13:44:22 +0000 (14:44 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Apr 2022 14:38:15 +0000 (08:38 -0600)
commit848b4cbab38978d72066b2ecd08065149b7f9be5
treec737c513a10672f41e8b6121293479ebf0f080f8
parent8f1e037c069badd94461e89e717567d038db6084
io_uring: refactor io_run_task_work()

The second check in io_run_task_work() is there only for SQPOLL, for
which we use TWA_NONE. Remove the check and hand code SQPOLL specific
task_work running where it makes sense.

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