[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070410085901.GA13662@elte.hu>
Date: Tue, 10 Apr 2007 10:59:01 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Andrew Morton <akpm@...ux-foundation.org>,
Dave Jones <davej@...hat.com>, Jeff Garzik <jeff@...zik.org>,
Robin Holt <holt@....com>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
linux-kernel@...r.kernel.org,
Jack Steiner <steiner@...ricas.sgi.com>
Subject: Re: init's children list is long and slows reaping children.
* Russell King <rmk+lkml@....linux.org.uk> wrote:
> One per PC card socket to avoid the sysfs locking crappyness that
> would otherwise deadlock, and to convert from the old unreadable state
> machine implementation to a much more readable linearly coded
> implementation.
>
> Could probably be eliminated if we had some mechanism to spawn a
> helper thread to do some task as required which didn't block other
> helper threads until it completes.
looks like the perfect usecase for threadlets. (threadlets only use up a
separate context if necessary and can be coded in the familiar
sequential/linear model)
(btw., threadlets could in theory be executed in irq context too, and if
we block on anything it gets bounced off to a real context - although
this certainly pushes the limits and there would still be some deadlock
potential for things like irq-unsafe non-sleeping locks (spinlocks,
rwlocks).)
Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists