From: Daniel Walker <dwalker@mvista.com>
To: David Miller <davem@davemloft.net>
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
jens.axboe@oracle.com, steffen.klassert@secunet.com
Subject: Re: [PATCH 2/2]: softirq: Add support for triggering softirq work on softirqs.
Date: Sat, 20 Sep 2008 08:43:33 -0700 [thread overview]
Message-ID: <1221925413.1343.132.camel@localhost.localdomain> (raw)
In-Reply-To: <20080919.234832.127229997.davem@davemloft.net>
On Fri, 2008-09-19 at 23:48 -0700, David Miller wrote:
> @@ -6,6 +6,8 @@
> * Distribute under GPLv2.
> *
> * Rewritten. Old one was good in 2.2, but in 2.3 it was immoral. --ANK (990903)
> + *
> + * Remote softirq infrastructure is by Jens Axboe.
> */
This goes in the GIT log so I hear, so you shouldn't need to add it to
the top.. It sounds like your saying Jens is the author, but I'm sure
you are..
> #include <linux/module.h>
> @@ -463,17 +465,118 @@ void tasklet_kill(struct tasklet_struct *t)
>
> EXPORT_SYMBOL(tasklet_kill);
>
> +DEFINE_PER_CPU(struct list_head, softirq_work_list[NR_SOFTIRQ]);
> +
> +static void __local_trigger(struct call_single_data *cp, int softirq)
> +{
> + struct list_head *head = &__get_cpu_var(softirq_work_list[softirq]);
> +
> + list_add_tail(&cp->list, head);
> + if (head->next == &cp->list)
> + raise_softirq_irqoff(softirq);
> +}
This list your adding is rather confusing .. You add to it, but never
remove anything.. You've got it in the header file, so you must use it
someplace else .. Then I don't see what else it could be used for other
than triggering the softirq..
> +#if defined(CONFIG_SMP) && defined(CONFIG_USE_GENERIC_SMP_HELPERS)
This whole patch really needs ifdefs. There's no value here on UP, since
what other cpu are you going to send softirqs to?
Daniel
next prev parent reply other threads:[~2008-09-20 15:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-20 6:48 [PATCH 2/2]: softirq: Add support for triggering softirq work on softirqs David Miller
2008-09-20 7:46 ` Andrew Morton
2008-09-20 10:35 ` David Miller
2008-09-20 10:56 ` David Miller
2008-09-20 17:42 ` Andrew Morton
2008-09-20 15:43 ` Daniel Walker [this message]
2008-09-20 20:03 ` David Miller
2008-09-20 20:16 ` Daniel Walker
2008-09-20 20:19 ` David Miller
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=1221925413.1343.132.camel@localhost.localdomain \
--to=dwalker@mvista.com \
--cc=davem@davemloft.net \
--cc=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=steffen.klassert@secunet.com \
/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