Re: [RFC][PATCH] create workqueue threads only when needed

From: Oliver Neukum
Date: Mon Feb 02 2009 - 04:13:30 EST


Am Monday 02 February 2009 10:05:28 schrieb Benjamin Herrenschmidt:
> > Work which /may/ sleep longer, for example performs SCSI transactions,
> > needs to go into a private workqueue or other kind of context.
>
> Well, it's a bit silly to allocate a private workqueue with all it's
> associated per CPU kernel threads for something as rare as resetting
> your eth NIC ... or even SCSI error handling in fact.

How do you avoid a deadlock if SCSI error handling doesn't use
a dedicated workqueue?

Regards
Oliver

--
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/