io_uring: use the right type for work_llist empty check
authorJens Axboe <axboe@kernel.dk>
Tue, 26 Mar 2024 00:53:33 +0000 (18:53 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Mar 2024 20:05:02 +0000 (14:05 -0600)
commit5b799fa796e38cdcfcc3cd87a9b9c803d6f0bb86
tree35dc08d59a48b4bd8cc368a20a3d5979f8accdf7
parent01fef5671ec6bcb29ef01cd0482d0df459e78eab
io_uring: use the right type for work_llist empty check

io_task_work_pending() uses wq_list_empty() on ctx->work_llist, but it's
not an io_wq_work_list, it's a struct llist_head. They both have
->first as head-of-list, and it turns out the checks are identical. But
be proper and use the right helper.

Fixes: dac6a0eae793 ("io_uring: ensure iopoll runs local task work as well")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.h