question about softirqs
David Miller
davem at davemloft.net
Sat May 9 16:48:15 EST 2009
From: Paul Mackerras <paulus at samba.org>
Date: Sat, 9 May 2009 13:31:23 +1000
> David Miller writes:
>
>> Grumble, when did that happen :-(
>
> Ages ago (i.e. before the switch to git :). Talk to Ingo, it's his
> doing IIRC.
I'll first do some data mining before coming to any (further)
conclusions :-)
>> That's horrible for latency compared to handling it directly
>> in the trap return path.
>
> Actually, I don't know why we ever let there be softirqs pending when
> we're in process context. I would think that we should just call
> do_softirq immediately if we raise a softirq when !in_interrupt().
> But I might be missing some subtlety.
I bet it was a non-starter before IRQ stacks.
It does seem like a good idea to me.
You know, for networking over loopback (one of the only real cases
that even matters, if we get a hard interrupt then the return from
that would process any softints), we probably make out just fine
anyways. As long as we hit a local_bh_enable() (and in the return
path from device transmit that's exceedingly likely as all of the
networking locking is BH safe) we'll run the softints from that and
thus long before we get to syscall return.
More information about the Linuxppc-dev
mailing list