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, 29 Jan 2023 22:17:40 +0000 (15:17 -0700)
commit490c00eb4fa5e5e25e0127240f6d6c1b499da95b
tree62b4b4dd9dbc881c2566d96c591e3df7bb984b3c
parent846072f16eed3b3fb4e59b677f3ed8afb8509b89
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