io_uring: simplify io_has_work
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 5 Jan 2023 11:22:26 +0000 (11:22 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 8 Jan 2023 18:18:44 +0000 (11:18 -0700)
commitb9b19725832c2fdd98fdf7e5d103491a13cc5989
tree679abd1517dfdbb5d33863e8618b79c85cb18605
parentcae0ad261cbe17c05a3072e9452104c2e3316e29
io_uring: simplify io_has_work

->work_llist should never be non-empty for a non DEFER_TASKRUN ring, so
we can safely skip checking the flag.

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