login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
20
Re: [PATCH] Tasklets: Avoid duplicating __tasklet_{,hi_}schedule() code
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Dmitry Adamushko
Subject:
Re: [PATCH] Tasklets: Avoid duplicating __tasklet_{,hi_}schedule() code
Date: Wednesday, February 20, 2008 - 7:20 am
On 20/02/2008, Ahmed S. Darwish <darwish.07@gmail.com> wrote:
quoted text
> On Wed, Feb 20, 2008 at 11:41:13AM +0100, Ingo Molnar wrote: > > > > * Ahmed S. Darwish <darwish.07@gmail.com> wrote: > > > > > > > - local_irq_disable(); > > > > > - t->next = __get_cpu_var(tasklet_vec).list; > > > > > - __get_cpu_var(tasklet_vec).list = t; > > > > > - __raise_softirq_irqoff(TASKLET_SOFTIRQ); > > > > > - local_irq_enable(); > > > > > + /* We were not lucky enough to run, reschedule. */ > > > > > + __tasklet_schedule(t); > > > > > > > > i think there's a subtle difference that you missed: this one does > > > > __raise_softirq_irqoff(), while __tasklet_schedule() does a > > > > raise_softirq_irqoff(). (note the lack of undescores) > > > > > > > > the reason is to avoid infinitely self-activating tasklets. > > > > > > Indeed, thanks a lot for the explanation. (maybe it's time to check > > > for new eyeglasses ;)). > > > > nah, it's rather subtle and the code looked good to me at first but i > > remembered that there was some small detail here to watch out for. > > > > i really dont like tasklets due to their many, arbitrary scheduling > > limitations, we should really use the "turn tasklets into kthreads" > > patch i posted last year. > > > > While we are at it, there's a small question that is bothering me > for a while (and I'm really thankful for help). > > I keep reading that softirqs (and naturally, tasklets) got executed > in interrupt context at the return from hardirq code path. > > Checking entry_32.S, I find no mentioning of softirqs on the return > path (beginning from ret_from_intr: to restore_all: ) > > The only invocation I'm able to find is from local_bh_enable() and > from ksoftirqd/n threads (by calling do_softirq()). AFAIK, both > invocations occur in a _nont-interrupt_ context (exception context). > > So, where does the interrupt-context tasklets invocation really > occur ?
Look at irq_exit() in softirq.c. The common sequence is ... -> do_IRQ() --> irq_exit() --> invoke_softirq() -- Best regards, Dmitry Adamushko --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] Tasklets: Avoid duplicating __tasklet_{,hi_}schedu ...
, Ahmed S. Darwish
, (Tue Feb 19, 8:37 am)
Re: [PATCH] Tasklets: Avoid duplicating __tasklet_{,hi_}sc ...
, Ingo Molnar
, (Tue Feb 19, 8:52 am)
Re: [PATCH] Tasklets: Avoid duplicating __tasklet_{,hi_}sc ...
, Ahmed S. Darwish
, (Tue Feb 19, 9:27 am)
Re: [PATCH] Tasklets: Avoid duplicating __tasklet_{,hi_}sc ...
, Ingo Molnar
, (Wed Feb 20, 3:41 am)
Re: [PATCH] Tasklets: Avoid duplicating __tasklet_{,hi_}sc ...
, Ahmed S. Darwish
, (Wed Feb 20, 6:37 am)
Re: [PATCH] Tasklets: Avoid duplicating __tasklet_{,hi_}sc ...
, Dmitry Adamushko
, (Wed Feb 20, 7:20 am)
Re: [PATCH] Tasklets: Avoid duplicating __tasklet_{,hi_}sc ...
, Ahmed S. Darwish
, (Wed Feb 20, 12:39 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Fortier,Vincent [Montreal]
2.6.21.5 june 30th to july 1st date hang?
Jeff Dike
[ PATCH 2/6 ] UML - Formatting fixes around os_{read_write}_file callers
Liam Girdwood
[PATCH 07/13] regulator: regulator test harness
Oleg Nesterov
Re: Getting the new RxRPC patches upstream
Stefan Seyfried
Re: 2.6.19-rc5: grub is much slower resuming from suspend-to-disk than in 2.6.18
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Jan Engelhardt
Re: [PATCH iptables] extension: add xt_cpu match
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Sebastian Andrzej Siewior
[PATCH 8/8] net/emergency: remove locking from reycling pool if emergncy pools are...
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
git
:
Jakub Narebski
Re: git on MacOSX and files with decomposed utf-8 file names
Brandon Casey
Re: Thunderbird and patches (was Re: [PATCH v2] Enable setting attach as the def...
Christian Couder
[PATCH 1/3] rev-parse: add test script for "--verify"
Ramkumar Ramachandra
Re: [GSoC update] git-remote-svn: The final one
Junio C Hamano
Re: git-rm isn't the inverse action of git-add
openbsd-misc
:
Joachim Schipper
Re: UVC Webcams
Florin Andrei
SOLVED [was: firewall is very slow, something's wrong]
Todd Alan Smith
Re: Microsoft gets the Most Secure Operating Systems award
Neal Hogan
Re: Need Advice: Thinkpad T60 or T61?
Sam Fourman Jr.
Re: Real men don't attack straw men
git-commits-head
:
Linux Kernel Mailing List
ACPI: Disable ARB_DISABLE on platforms where it is not needed
Linux Kernel Mailing List
m68knommu: add read_barrier_depends() and irqs_disabled_flags()
Linux Kernel Mailing List
[MTD] Add mtd panic_write function pointer
Linux Kernel Mailing List
[ARM] pxa: remove duplicate select statements from Kconfig
Linux Kernel Mailing List
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
Colocation donated by:
Syndicate