Re: [PATCH V7 4/4] softirq: Allow early break the softirq processing loop

From: Peter Zijlstra
Date: Mon Sep 28 2020 - 05:22:55 EST


On Tue, Sep 15, 2020 at 07:56:09PM +0800, qianjun.kernel@xxxxxxxxx wrote:
> +/*
> + * The pending_next_bit is recorded for the next processing order when
> + * the loop is broken. This per cpu variable is to solve the following
> + * scenarios:

This, that adds all that complexity, and I think it's wrong. The
softirqs are priority ordered. Running then again from 0 up if/when you
break seems 'right'.