Re: [PATCH 2/3] genirq: Clean up IRQ threaded handler exit path

From: Alexander Gordeev
Date: Mon Mar 19 2012 - 16:29:11 EST


On Mon, Mar 19, 2012 at 03:59:05PM +0100, Alexander Gordeev wrote:

> The fact that a threaded handler is serving interrupts is encoded in
> irq_thread flag explicitly and in the kthread's should_stop flag
> implicitly. This fix eliminates the duplicate by checking should_stop
> flag only.
>
> This fix also converts irq_thread flag into a new per process flag that
> indicates a kernel thread is actually a IRQ thread handler. As an effect
> thread handlers become distinguishable. As a result we can have a single
> exit path rather than two.
>
> Signed-off-by: Alexander Gordeev <agordeev@xxxxxxxxxx>

[...]

Thomas,

I self-NAK this patch..

I made it before Ido's 7140ea1 commit and blindly posted modified version.
Now I see it apparently complicates the code and no consumers of the new
irq_thread flag's semantics exist anyway. So no point in this patch.

Patches 1 and 3 are unaffected and up to review.

--
Regards,
Alexander Gordeev
agordeev@xxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/