On Tue, Feb 02, 2010 at 12:17:05PM -0000, David Wooff wrote:
> I have a "bottom half" processing function which I'm queueing from an
> interrupt on a workqueue.  Is it OK/safe to also queue the same function
> on the same workqueue from the driver in response to an application
> read/write?  I have read LDD3 and looked for workqueues in the
> documentation and consulted various other sources but I can't figure out
> if this is safe by design (without trying it obviously).

Yes, it is safe. See kernel/workqueue.c:
queue_work -> queue_work_on -> __queue_work -> spin_lock_irqsave

Best regards,

  Daniel
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to