Hello, Alice.

On Wed, Nov 18, 2026 at 05:09:51PM +0000, Alice Ryhl wrote:
> +             if (unlikely(pwq->wq->flags & __WQ_ORDERED)) {
> +                     struct pool_workqueue *oldest_pwq =
> +                             list_first_or_null_rcu(&pwq->wq->pwqs,
> +                                                    struct pool_workqueue,
> +                                                    pwqs_node);
> +
> +                     if (oldest_pwq)
> +                             offq_pool = oldest_pwq->pool;
> +             }

@pwq still has @work queued on it here, so it's linked on wq->pwqs and the
list can't be empty. Maybe drop the NULL check? e.g.

  if (unlikely(pwq->wq->flags & __WQ_ORDERED))
        offq_pool = list_entry_rcu(pwq->wq->pwqs.next, struct pool_workqueue,
                                   pwqs_node)->pool;

Thanks.

--
tejun

Reply via email to