From: Mark Hounschell <markh@compro.net>
To: john stultz <johnstul@us.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>, lkml <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Steven Rostedt <rostedt@goodmis.org>
Subject: Re: [RFC][PATCH -rt] irqd starvation on SMP by a single process?
Date: Fri, 12 May 2006 16:04:58 -0400 [thread overview]
Message-ID: <4464EA6A.6070903@compro.net> (raw)
In-Reply-To: <1147457058.9343.22.camel@localhost.localdomain>
john stultz wrote:
> On Fri, 2006-05-12 at 07:50 +0200, Ingo Molnar wrote:
>> + if (!cpus_equal(current->cpus_allowed, irq_affinity[irq]));
>> + set_cpus_allowed(current, irq_affinity[irq]);
>
> Gah! I introduced a terrible bug there.
>
> Note the semi-colon at the end of the if statement! Sorry about that!
>
> The following patch (which I've tested as well) fixes that.
>
> --- 2.6-rt/kernel/irq/manage.c 2006-05-11 18:37:36.000000000 -0500
> +++ dev-rt/kernel/irq/manage.c 2006-05-12 12:55:56.000000000 -0500
> @@ -724,6 +724,7 @@
> set_current_state(TASK_INTERRUPTIBLE);
> do_hardirq(desc);
> cond_resched_all();
> + local_irq_disable();
> __do_softirq();
> // do_softirq_from_hardirq();
> local_irq_enable();
> @@ -731,10 +732,8 @@
> /*
> * Did IRQ affinities change?
> */
> - if (!cpu_isset(smp_processor_id(), irq_affinity[irq])) {
> - mask = cpumask_of_cpu(any_online_cpu(irq_affinity[irq]));
> - set_cpus_allowed(current, mask);
> - }
> + if(!cpus_equal(current->cpus_allowed, irq_affinity[irq]))
> + set_cpus_allowed(current, irq_affinity[irq]);
> #endif
> schedule();
> }
>
>
>
>
FYI,
I just looked at rt21 and the first version of this patch seems to be in
it. Not this version.
Mark
next prev parent reply other threads:[~2006-05-12 20:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-12 2:43 [RFC][PATCH -rt] irqd starvation on SMP by a single process? john stultz
2006-05-12 5:50 ` Ingo Molnar
2006-05-12 7:59 ` Steven Rostedt
2006-05-12 8:10 ` Ingo Molnar
2006-05-12 11:39 ` Mark Hounschell
2006-05-12 11:56 ` Ingo Molnar
2006-05-12 11:59 ` Mark Hounschell
2006-05-12 12:53 ` Mark Hounschell
2006-05-12 13:03 ` Steven Rostedt
2006-05-12 13:06 ` Mark Hounschell
2006-05-12 13:19 ` Mark Hounschell
2006-05-12 17:47 ` john stultz
2006-05-12 18:04 ` john stultz
2006-05-12 19:16 ` Mark Hounschell
2006-05-12 20:04 ` Mark Hounschell [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-05-12 4:22 Edward Killips
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4464EA6A.6070903@compro.net \
--to=markh@compro.net \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox