Re: +work_on_cpu-rewrite-it-to-create-a-kernel-thread-on-demand.patch added to-mm tree

From: Andrew Morton
Date: Thu Feb 12 2009 - 17:24:30 EST


On Thu, 12 Feb 2009 14:13:06 -0800
ebiederm@xxxxxxxxxxxx (Eric W. Biederman) wrote:

>
> I should follow up and say that the reason I care right now, is I am
> digging into pci hotplug. One of the issues I'm fighting is that
> currently I appear to need a dedicated kernel thread for each pci
> hotplug slot. It gets easy to deadlock the kernel hotplugging
> a hotplug controller otherwise.
>

um, ok, if you say so...

I'd have thought that a short-lived kernel thread would be appropriate,
if poss. Physical hotplug of a PCI device isn't a high-frequency
operation.

The new-fangled work_on_cpu() could do that, or maybe the new-fangled
kernel/async.c code.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/