diff options
| author | Jens Axboe <axboe@kernel.dk> | 2024-03-25 18:53:33 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-12 11:03:05 +0200 |
| commit | 91f1edfa38626380879b78eb0ed8117e45c39971 (patch) | |
| tree | d475e229f993b7c609f2955a002c765c253e27d1 /io_uring | |
| parent | 0c9ce8f239701293a5e909e65f1d0831cc083edf (diff) | |
| download | linux-91f1edfa38626380879b78eb0ed8117e45c39971.tar.gz linux-91f1edfa38626380879b78eb0ed8117e45c39971.tar.bz2 linux-91f1edfa38626380879b78eb0ed8117e45c39971.zip | |
io_uring: use the right type for work_llist empty check
[ Upstream commit 22537c9f79417fed70b352d54d01d2586fee9521 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'io_uring')
| -rw-r--r-- | io_uring/io_uring.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h index 9e74f7968e05..0cafdefce02d 100644 --- a/io_uring/io_uring.h +++ b/io_uring/io_uring.h @@ -275,7 +275,7 @@ static inline int io_run_task_work(void) static inline bool io_task_work_pending(struct io_ring_ctx *ctx) { - return task_work_pending(current) || !wq_list_empty(&ctx->work_llist); + return task_work_pending(current) || !llist_empty(&ctx->work_llist); } static inline int io_run_task_work_ctx(struct io_ring_ctx *ctx) |
